[英]Clojure.test and Leinigen: How to run just a single test from command line
this: 这个:
Run one Clojure test (not all tests in a namespace), with fixtures, from the REPL 从REPL运行一个Clojure测试(不是名称空间中的所有测试)和fixtures
works fine with repl, how can I do this from command line using Leinigen? 使用repl工作正常,如何使用Leinigen从命令行执行此操作?
What you are looking for is probably: 您正在寻找的可能是:
lein test :only my.namespace/my-test
Note that: 注意:
lein help test
outputs: 输出:
"A default :only test-selector is available to run select tests. For example,
`lein test :only leiningen.test.test/test-default-selector` only runs the
specified test. A default :all test-selector is available to run all tests."
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.