[英]How can I skip tests in an SBT build?
I have an SBT 0.7.5 project and its some test cases fail. 我有一个SBT 0.7.5项目,它的一些测试用例失败了。 Until all test cases are fixed, I want to skip tests to generate a JAR.
在修复所有测试用例之前,我想跳过测试来生成JAR。 Is there any command line argument that tells SBT to skip all tests, like Maven's
-Dmaven.test.skip=true
flag? 是否有任何命令行参数告诉SBT跳过所有测试,例如Maven的
-Dmaven.test.skip=true
标志?
I had the same problem, I'm using the assembly plugin . 我有同样的问题,我正在使用程序集插件 。 In this case, the solution was to modify the build file and add
在这种情况下,解决方案是修改构建文件并添加
test in assembly := {}
Instead of using compile
, you could use package
. 您可以使用
package
,而不是使用compile
。 The compile tasks also runs the tests, package doesn't. 编译任务也运行测试,包没有。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.