1

是否可以仅使用 tycho surefire 运行 junit 插件测试而不重建应用程序。更多信息 我们有 2 个 jenkins 工作。

  1. 构建应用程序(工作正常)。
  2. 应该只在已经构建的应用程序上运行测试

我尝试了“mvn org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test”但失败:[错误] 无法执行目标 org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test ( default-cli) 在项目 com.somename.studio.template.tests 上:执行目标 org.e clipse.tycho:tycho-surefire-plugin:1.0.0:test 的默认 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]

谢谢

4

1 回答 1

0

由于 tycho 正确使用了 maven 生命周期,因此您不应该使用,mvn org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test而应仅mvn test在测试项目上使用。

于 2018-05-30T13:31:36.897 回答