Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Integration Testing: Eclipse Plugin JUnit Test

Testing code in the context of the eclipse environment as a JUnit test can be very slow. Execution time can be significantly reduced by only using the necessary plugins in "headless mode". Just follow these simple instructions:

  1. In Project Explorer, right click the test class, choose "Run as" (or "Debug as", as needed) and choose "Run configurations".
    Image Added
  2. Right click JUnit Plugin Test and click "New"
    Image Added
  3. Choose the Tab "Plug-Ins" and select "plugins selected below" from the drop-down menu "Launch with:"
    Image Added
  4. Click "Deselect all"

    Image Added
  5. Choose the test project needed for your test and click "Add required plugins"
    Image Added
  6. Click Tab "Main" and choose "Run an application"
    Image Added
  7. From the dropdown menu beside "Run an application" choose "No application"
    Image Added
  8. Hit run and enjoy pure speed (sort of).