Clojure.test 和 Leinigen:如何 运行 从命令行进行一次测试
Clojure.test and Leinigen: How to run just a single test from command line
这个:
Run one Clojure test (not all tests in a namespace), with fixtures, from the REPL
在 repl 上运行良好,我如何使用 Leinigen 从命令行执行此操作?
您要找的大概是:
lein test :only my.namespace/my-test
注意:
lein help test
输出:
"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."
这个:
Run one Clojure test (not all tests in a namespace), with fixtures, from the REPL
在 repl 上运行良好,我如何使用 Leinigen 从命令行执行此操作?
您要找的大概是:
lein test :only my.namespace/my-test
注意:
lein help test
输出:
"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."