2.3 KiB
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:
$ 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:
lein test
REPL
To use the REPL to run the exercise's test, run the following command from the exercise's directory:
$ clj
-or-
$ lein repl
Then require
the exercise's test namespace and the Clojure test namespace):
;; replace <exercise> with the exercise's name
=> (require '<exercise>-test)
Then call run-tests
on <exercise>-test
:
;; 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
- Exercism's support channel on gitter
- The Frequently Asked Questions
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 Official forum for Clojure Q & A.
- ClojureDocs A repository of language references and examples by function or keyword.
- /r/clojure is the Clojure subreddit.
- StackOverflow can be used to search for your problem and see if it has been answered already. You can also ask and answer questions.
- Clojureverse Friendly and inclusive Clojure(Script) Community