How do I get rid of repetitive clojure test-unit tests on REPL

I have a little script

(use :reload-all 'com.example.package1 'com.example.package2 'com.example.package3 'com.example.testlib) (run-tests 'com.example.package1 'com.example.package2 'com.example.package3) 

which I use to quickly reload everything and burn unit tests.
the problem is that every time (deftest ...) is evaluated as the files are read, an additional test is created, so after working all day every test is now performed 103 times, eek!

+2
source share
1 answer

There is a *load-tests* flag that defines deftest behavior. (doc deftest) seems to imply that setting this flag to false may solve your problem.

+2
source

Source: https://habr.com/ru/post/886075/


All Articles