sbt-assembly:跳过特定测试 [英] sbt-assembly: skip specific test
问题描述
我想配置 sbt-assembly
以跳过特定的测试类.
I would like to configure sbt-assembly
to skip a specific test class.
有没有办法做到这一点?如果有帮助,我会使用 ScalaTest @Network
标签标记测试.
Is there any way to do this? If it helps, I tagged the test using ScalaTest @Network
tag.
推荐答案
参见 具有共享源的附加测试配置.这允许您在重复使用测试源的同时在 FunTest
配置中提出替代测试"任务.
See Additional test configurations with shared sources. This allows you to come up with alternative "test" task in FunTest
configuration while reusing your test source.
在您让 fun:test
使用您使用 testOptions in FunTest := Seq(Tests.Filter(itFilter))
定义的任何过滤器后,您可以重新连接
After you have fun:test
working with whatever filter you define using testOptions in FunTest := Seq(Tests.Filter(itFilter))
, you can then rewire
test in assembly := test in FunTest
这篇关于sbt-assembly:跳过特定测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!