【问题标题】:Clojure.test and Leinigen: How to run just a single test from command lineClojure.test 和 Leinigen:如何从命令行只运行一个测试
【发布时间】:2017-05-19 23:30:12
【问题描述】:

这个:

Run one Clojure test (not all tests in a namespace), with fixtures, from the REPL

使用 repl 可以正常工作,如何使用 Leinigen 从命令行执行此操作?

【问题讨论】:

    标签: clojure leiningen clojure.test


    【解决方案1】:

    您正在寻找的可能是:

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

    【讨论】:

    • 谢谢,有帮助!我只是稍微改变了答案,所以我可以接受它。
    猜你喜欢
    • 2015-04-25
    • 2014-09-02
    • 2015-05-22
    • 2016-02-03
    • 1970-01-01
    • 2015-05-09
    • 2011-04-25
    • 2014-05-30
    • 1970-01-01
    相关资源
    最近更新 更多