【问题标题】:SBT Plugins: Is it possible to run scripted for a single test instead of running all tests?SBT 插件:是否可以为单个测试运行脚本而不是运行所有测试?
【发布时间】:2017-07-07 15:02:42
【问题描述】:

我有 5 个scripted 测试来测试我的 sbt 插件。所有这些都需要很长时间才能运行。我有时只想运行其中一项测试。

是否可以指定脚本运行哪个测试?

【问题讨论】:

    标签: sbt sbt-plugin


    【解决方案1】:

    您可以将测试的路径作为参数传递给scripted 命令。

    例如,要在 /src/sbt-test/foo/bar 中运行测试,请从 sbt 运行 scripted foo/bar

    > scripted foo/bar
    

    【讨论】:

    • > scripted foo/*运行foo文件夹下的所有测试
    猜你喜欢
    • 1970-01-01
    • 2018-04-22
    • 2016-05-20
    • 2020-12-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-10
    • 2014-04-28
    相关资源
    最近更新 更多