我正在尝试为 Eclipse 插件编写单元测试用例。通过http://www.vogella.com/tutorials/EclipseTycho/article.html#run-the-build-with-the-tests并创建了一个 eclipse-test-plugin。
因此,测试插件(我们称之为 plugin-b)依赖于另一个为其编写测试的插件(plugin-a)。当我运行 mvn clean install 时,我可以看到 tycho-surefire 正在尝试运行测试,并且在此过程中正在尝试启动 plugin-a。但是,plugin-a 需要一组 VM 参数才能正确启动。我试图传递如下参数: mvn -Dabc.properties=bridge\bundles\com.blah.blah.blah.blah.bridge\abc.properties clean install
但他们没有通过插件-a。
任何帮助是极大的赞赏。