如何在 SBT 版本中跳过测试? [英] How can I skip tests in an SBT build?

查看:37
本文介绍了如何在 SBT 版本中跳过测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 SBT 0.7.5 项目,它的一些测试用例失败了.在修复所有测试用例之前,我想跳过测试以生成 JAR.是否有任何命令行参数告诉 SBT 跳过所有测试,例如 Maven 的 -Dmaven.test.skip=true 标志?

I have an SBT 0.7.5 project and its some test cases fail. Until all test cases are fixed, I want to skip tests to generate a JAR. Is there any command line argument that tells SBT to skip all tests, like Maven's -Dmaven.test.skip=true flag?

推荐答案

您可以使用 package 代替 compile.编译任务也运行测试,包没有.

Instead of using compile, you could use package. The compile tasks also runs the tests, package doesn't.

这篇关于如何在 SBT 版本中跳过测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆