部署完成后Hudson Maven测试
我已将 Hudson 配置为持续集成。在我的 Maven 工作中,我定义了“将 war/ear 部署到容器”选项和“M2 Extra Build Steps -post”。在“M2 Extra Build Steps -post”中,我定义了运行测试用例。但在部署之前,完整的 Maven 测试将运行。
有没有办法在部署完成后配置运行测试用例?
谢谢。
I have configured Hudson for continuous integration. in my Maven job I have define "Deploy war/ear to a container " option and " M2 Extra Build Steps -post". in "M2 Extra Build Steps -post" I have define run to test case. But before deployment complete maven test will run.
Is there any way to configure run the test cases after deployment completed?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 MAVEN_OPTS 中添加参数 -Dmaven.test.skip=true 或 -DskipTests=true (这是 Jenkins 单击“高级”按钮时出现的),具体取决于您是要跳过测试编译和执行还是仅执行。
Add the parameter -Dmaven.test.skip=true or -DskipTests=true in MAVEN_OPTS (this is present Jenkins clicking the Advanced button), depending on whether you want to skip test compilation and execution or only execution.