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
I have just got JUnit testing working as part of the headless build for our RCP application.
I found this article - Automating Eclipse PDE Unit Tests using Ant incredibly helpful. It provides code and approach to get you started. However, a number of things that I discovered:
uitestapplication
requires another testApplication
. Using coretestapplication
does not. I found that the code provided was a good starting point, but had a number of the above assumptions implicit in their implementation.
Having discovered these assumptions, doing the work was relatively straight forward.
Java Result 13
problem.PDETestListener
modified to handle multiple test classesI also read Build and Test Automation for plug-ins and features but we are not using PDE-Build directly.