You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
2.3 KiB
75 lines
2.3 KiB
3 years ago
|
# Help
|
||
|
|
||
|
## Running the tests
|
||
|
|
||
|
## Clojure CLI
|
||
|
|
||
|
The Clojure exercises on Exercism ship with a `deps.edn` file with a `:test` alias to invoke the [cognitect-labs test-runner](https://github.com/cognitect-labs/test-runner):
|
||
|
|
||
|
``` bash
|
||
|
$ clj -X:test
|
||
|
```
|
||
|
|
||
|
## Leiningen
|
||
|
|
||
|
Leiningen can also be used to run the exercise's test by running the following command from the exercise's directory:
|
||
|
|
||
|
```bash
|
||
|
lein test
|
||
|
```
|
||
|
|
||
|
## REPL
|
||
|
|
||
|
To use the REPL to run the exercise's test, run the following command from the exercise's directory:
|
||
|
|
||
|
```bash
|
||
|
$ clj
|
||
|
```
|
||
|
|
||
|
-or-
|
||
|
|
||
|
```bash
|
||
|
$ lein repl
|
||
|
```
|
||
|
|
||
|
Then `require` the exercise's test namespace and the Clojure test namespace):
|
||
|
|
||
|
```clojure
|
||
|
;; replace <exercise> with the exercise's name
|
||
|
=> (require '<exercise>-test)
|
||
|
```
|
||
|
|
||
|
Then call `run-tests` on `<exercise>-test`:
|
||
|
|
||
|
```clojure
|
||
|
;; replace <exercise> with the exercise's name
|
||
|
=> (clojure.test/run-tests '<exercise>-test)
|
||
|
```
|
||
|
|
||
|
## Submitting your solution
|
||
|
|
||
|
You can submit your solution using the `exercism submit src/lucians_luscious_lasagna.clj` command.
|
||
|
This command will upload your solution to the Exercism website and print the solution page's URL.
|
||
|
|
||
|
It's possible to submit an incomplete solution which allows you to:
|
||
|
|
||
|
- See how others have completed the exercise
|
||
|
- Request help from a mentor
|
||
|
|
||
|
## Need to get help?
|
||
|
|
||
|
If you'd like help solving the exercise, check the following pages:
|
||
|
|
||
|
- The [Clojure track's documentation](https://exercism.org/docs/tracks/clojure)
|
||
|
- [Exercism's support channel on gitter](https://gitter.im/exercism/support)
|
||
|
- The [Frequently Asked Questions](https://exercism.org/docs/using/faqs)
|
||
|
|
||
|
Should those resources not suffice, you could submit your (incomplete) solution to request mentoring.
|
||
|
|
||
|
To get help if you're having trouble, you can use one of the following resources:
|
||
|
|
||
|
- [Ask Clojure](https://ask.clojure.org/) Official forum for Clojure Q & A.
|
||
|
- [ClojureDocs](https://clojuredocs.org) A repository of language references and examples by function or keyword.
|
||
|
- [/r/clojure](https://www.reddit.com/r/clojure) is the Clojure subreddit.
|
||
|
- [StackOverflow](http://stackoverflow.com/questions/tagged/clojure) can be used to search for your problem and see if it has been answered already. You can also ask and answer questions.
|
||
|
- [Clojureverse](https://clojureverse.org/) Friendly and inclusive Clojure(Script) Community
|