JUnit Plug-in Tests Ignoring Target Platform

前端 未结 1 723
鱼传尺愫
鱼传尺愫 2020-12-20 09:14

I\'ve used the archetype from the tycho-eclipse-plugin-archetype to create a simple Eclipse plug-in with a working integration test project. Except... it doesn\'t.

W

相关标签:
1条回答
  • 2020-12-20 09:29

    It works in Eclipse 4.4.2 (Luna), so it's probably one of the "features" of Eclipse Mars.

    Addition: As explained here, Eclipse uses plug-ins from the application folder when it can't find them in the workspace's target platform. This makes the tests fail when the workspace and Eclipse target platform differ. The solution is to a) use the same Eclipse version for development and the project or b) use a cristall ball to figure out which test plug-ins are missing and add them to the project's target platform.

    0 讨论(0)
提交回复
热议问题