Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unit testing in clojure

Tags:

clojure

I am new to Clojure and I'm trying to write my unit tests. What is the best way to write unit tests in Clojure and how do I import the file where my functions are defined to my unit test.

Thanks for the help.

like image 818
Joe Crawley Avatar asked May 03 '26 16:05

Joe Crawley


1 Answers

To start with, there's clojure.test. Using Leiningen, you can call lein test to run the tests.

See also Speclj which is useful for BDD.

like image 103
Timothy Baldridge Avatar answered May 06 '26 08:05

Timothy Baldridge



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!