|
|
|
|
Re: How to run simple unit tests? [message #65184 is a reply to message #65057] |
Mon, 22 June 2009 14:02  |
Eclipse User |
|
|
|
Ben Vitale wrote:
> The follow-on script simply copies the compiled plugins and test
> fragments into a common location, puts them all in a classpath, then
> runs JUnit, calling out a top-level test suite for each plug-in.
Thanks; guess we'll have to set up something similar. Not a big deal
(though I try to minimize the amount of infrastructure we need to set up
and maintain)...
|
|
|
|
Re: How to run simple unit tests? [message #598349 is a reply to message #64941] |
Mon, 15 June 2009 21:19  |
Eclipse User |
|
|
|
Ben Vitale wrote:
> You don't really need PDE build for this. Just write an Ant script that
> uses the <junit> task. If you don't have a top-level script to drive
> both then I guess you could drive it from the PDE scripts..
That's the question: How do I hook a junit ant task (per-bundle) into the
PDE build script? Ideally, I'd want to keep the unit tests in separate
bundles (or fragments), but that may complicate things further...
|
|
|
Re: How to run simple unit tests? [message #598394 is a reply to message #64955] |
Wed, 17 June 2009 20:52  |
Eclipse User |
|
|
|
Eric Jain wrote:
>
> That's the question: How do I hook a junit ant task (per-bundle) into
> the PDE build script? Ideally, I'd want to keep the unit tests in
> separate bundles (or fragments), but that may complicate things further...
>
>
I'm not terribly familir with PDE build itself but I can tell you about
our setup and maybe that will help. We're not using PDE build as our
master script, which sort of sounds like what you want to do?
We are using CruiseControl to drive the whole process. It does the
following:
1. Runs a product build via PDE build for the main product
2. Runs a feature build via PDE build for a feature that holds our test
fragments
3. Runs a follow-on Ant script to execute the tests in the fragments.
We are doing the same thing you suggested; one test fragment per plug-in.
The follow-on script simply copies the compiled plugins and test
fragments into a common location, puts them all in a classpath, then
runs JUnit, calling out a top-level test suite for each plug-in.
HTH
Ben
|
|
|
Re: How to run simple unit tests? [message #598439 is a reply to message #65057] |
Mon, 22 June 2009 14:02  |
Eclipse User |
|
|
|
Ben Vitale wrote:
> The follow-on script simply copies the compiled plugins and test
> fragments into a common location, puts them all in a classpath, then
> runs JUnit, calling out a top-level test suite for each plug-in.
Thanks; guess we'll have to set up something similar. Not a big deal
(though I try to minimize the amount of infrastructure we need to set up
and maintain)...
|
|
|
Powered by
FUDForum. Page generated in 0.30142 seconds