Clojure.test 和 Leiningen : How to run just a single test from command line

标签 clojure leiningen clojure.test

这个:

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."

关于Clojure.test 和 Leiningen : How to run just a single test from command line,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41484746/

相关文章:

maven - 莱宁根等效于 maven 依赖项 `type` 元素

clojure - Compojure:lein-ring 正在生产中?

coding-style - 此 Clojure 代码缩进正确吗?

clojure - 使用 clojure 的 Web 应用程序使用代码热交换

build - 类似于 maven-resources-plugin 或 maven-antrun-plugin for leiningen

unit-testing - 如何测量每个命名空间运行 clojure 测试所花费的时间?

testing - 具有多个断言和报告的 Clojure 测试

unit-testing - 一种链接测试的方法,在 Clojure 中一个在另一个之后运行?

clojure - 有没有类似mapcdr的功能?

clojure - 如何在 Clojure 中遍历嵌套的字典/ HashMap 以自定义展平/转换我的数据结构?