Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse 如何仅在Tycho build RCP应用程序上运行测试_Eclipse_Maven_Jenkins_Tycho_Tycho Surefire Plugin - Fatal编程技术网

Eclipse 如何仅在Tycho build RCP应用程序上运行测试

Eclipse 如何仅在Tycho build RCP应用程序上运行测试,eclipse,maven,jenkins,tycho,tycho-surefire-plugin,Eclipse,Maven,Jenkins,Tycho,Tycho Surefire Plugin,是否可以只使用tycho surefire运行junit插件测试而不重建应用程序。 再多了解一点 我们有两份詹金斯的工作 构建应用程序(工作正常) 应仅在已生成的应用程序上运行测试 我试过“mvn org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test” 但是失败了: [错误]无法在project com.somename.studio.template上执行goal org.eclipse.tycho:tycho surefire插件:1.0.0:

是否可以只使用tycho surefire运行junit插件测试而不重建应用程序。 再多了解一点 我们有两份詹金斯的工作

  • 构建应用程序(工作正常)
  • 应仅在已生成的应用程序上运行测试
  • 我试过“mvn org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test” 但是失败了: [错误]无法在project com.somename.studio.template上执行goal org.eclipse.tycho:tycho surefire插件:1.0.0:test(默认cli)。tests:goal org.e的执行默认cli clipse.tycho:tycho surefire插件:1.0.0:测试失败:未为MavenProject配置tycho构建扩展:com.somename.studio:com.somename.studio.template。测试:1.0.0-SNAPSH OT@C:\GIT\somename\tests\junit\com.somename.studio.template.tests.polyglot.build.properties->[帮助1]


    谢谢

    因为tycho正确地使用了maven生命周期,所以您不应该在测试项目中使用
    mvn org.eclipse.tycho:tycho surefire插件:1.0.0:test
    ,而只需使用
    mvn test

    因为tycho正确地使用了maven生命周期,您不应该在测试项目上使用
    mvn org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test
    ,而应该简单地使用
    mvn-test