简体   繁体   English

如何仅在Tycho构建RCP应用程序上运行测试

[英]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个詹金斯职位。

  1. builds the application (works fine). 生成应用程序(工作正常)。
  2. should only run the tests on the already build application 应该只在已经构建的应用程序上运行测试

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM