简体   繁体   中英

Is there a single command to run tests from both clojure.test and Speclj?

I have an already working application that has some tests written with clojure.test

I want to create some new tests to raise code coverage, but this time using Speclj since tests look nicer.

However, now in order to make sure all tests are passing, I need to run lein test to run tests from clojure.test and lein spec to run tests from speclj.

Is there a single command to run all the tests no matter the library I chose?

You could specify an alias in leiningen, add the following line to project.clj:

:aliases {"test-all" ["do" ["test"] ["spec"]]}

and run it with lein test-all

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM