Automating unit tests (junit) for Eclipse Plugin development

后端 未结 7 1130
野趣味
野趣味 2020-12-07 23:31

I am developing Eclipse plugins, and I need to be able to automate the building and execution of the test suite for each plugin. (Using Junit)

Test are working with

7条回答
  •  一生所求
    2020-12-08 00:01

    We're using the PDE build scripts (see this question), and we export ant build files for our unit-test plugins. These ant build scripts are then invoked from the PDE build scripts (customTargets.xml) using the "ant" ant-task. Unfortunately, this only works with JUnit3. There's supposed to be a JUnit4-adapter for JUnit3 so you can run JUnit4 tests from a JUnit3 test-runner.

    We'll probably move to something like Maven; the PDE build scripts aren't really cut out for what we need to do with them.

提交回复
热议问题