[英]How to run only tests on a Tycho build RCP Application
Is it possible to run only the junit Plugin tests with tycho surefire without rebuilding the application. 是否可以仅使用tycho surefire运行junit插件测试,而无需重建应用程序。 A little more information We have 2 jenkins jobs.
更多信息我们有2个詹金斯职位。
I tried "mvn org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test" but fails: [ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test (default-cli) on project com.somename.studio.template.tests: Execution default-cli of goal org.e clipse.tycho:tycho-surefire-plugin:1.0.0:test failed: Tycho build extension not configured for MavenProject: com.somename.studio:com.somename.studio.template.tests:1.0.0-SNAPSH OT @ C:\\GIT\\somename\\tests\\junit\\com.somename.studio.template.tests.polyglot.build.properties -> [Help 1] 我尝试了“ mvn org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test”,但失败了:[错误]无法执行目标org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test(项目com.somename.studio.template.tests上的default-cli):执行目标org.e clipse.tycho:tycho-surefire-plugin:1.0.0:test的default-cli:测试失败:未为MavenProject配置Tycho构建扩展: com.somename.studio:com.somename.studio.template.tests:1.0.0-SNAPSH OT @ C:\\ GIT \\ somename \\ tests \\ junit \\ com.somename.studio.template.tests.polyglot.build.properties- > [帮助1]
Thanks 谢谢
由于tycho正确使用了maven生命周期,因此您不应使用mvn org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test
而应mvn org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test
测试项目进行mvn test
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.