January 2018
Intermediate to advanced
336 pages
7h 56m
English
To run all the tests defined under the :test-paths directive, run the lein test command. Since the default template of Leiningen has only one test defined and it always fails, there will be a test failure reported, as shown in the following code snippet. Since the :test-paths parameter in the updated configuration of project.clj points to test/clj instead of the default test/, the generated core_test.clj test source file must reside within the test/clj/playground/ directory as per the namespace and configured test paths for tests to run, as shown here:
% lein testlein test playground.core-testlein test :only playground.core-test/a-testFAIL in (a-test) (core_test.clj:7)FIXME, I fail.expected: (= 0 1) actual: (not (= 0 1))Ran ...
Read now
Unlock full access