Running JUnit tests held in multiple projects [message #167953] |
Fri, 09 July 2004 09:31 |
Eclipse User |
|
|
|
Originally posted by: paul.pauldyson.net
Since Eclipse 2.1 we have been splitting up our unit tests by project. All
unit tests were in the same project as the main code, all functional tests
in a project that depended on the main code project, and some non-functional
tests (that took a particularly long time to run) in a project that depended
on the functional test project:
NonFuncTest -> FuncTests -> UnitTests/MainCode
By running the NonFuncTest project as a JUnit test we could run all tests
(because the test runner picked up all the additional tests in FuncTests and
UnitTests/MainCode). Similarly, by running FunctionalTests as a JUnit test
we could run all functional and unit tests without the lengthy
non-functional tests.
The test runner worked this way up until Eclipse 3.0M6 (the last release I
tried before the full 3.0 release) but not in 3.0. In 3.0, running the
NonFuncTest project as a JUnit test just runs the non-functional tests
without the functional and unit tests.
Is there an option in the preferences (I can't find one) that determines how
far the test runner searches for tests? Can a single launcher be defined to
run tests from multiple projects?
Thanks for any help ...
Paul Dyson
|
|
|
Powered by
FUDForum. Page generated in 0.03351 seconds