Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 5 个脚本测试来测试我的 sbt 插件。所有这些都需要很长时间才能运行。我有时只想运行其中一项测试。
是否可以指定脚本运行哪个测试?
您可以将测试的路径作为参数传递给scripted命令。
scripted
例如,要在<project>/src/sbt-test/foo/bar中运行测试,scripted foo/bar请从 sbt 运行:
scripted foo/bar
> scripted foo/bar