Summary: | [JUnit]: Can't set a filter for tests to run | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Marcio <mqm> |
Component: | UI | Assignee: | Markus Keller <markus.kell.r> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | mike.haller, tobias_widmer |
Version: | 3.2 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Marcio
2005-12-15 16:02:36 EST
Markus, any comments? Can't you put these not-pure-JUnit tests into a separate source folder? If you send me detailed steps I cam try, but I suspect that it will break our build entirely. You see, we have Ant tasks to compile the code, JAR it, run JDepend on the source, run JavaNCSS on the source, run Findbugs on the source, instrument the code with Emma (code coverage) etc and produce 1 consolidated report from each tool. We run these tools on the actual app code and test code. These tools assume a sources dir, not multiple sources dir. Eclipse has tight integration with Ant, and has tight integration with JUnit, but not both at the same time, as we can see here. My Ant tasks run perfectly fine in Eclipse, they know how to run the pure JUnit tests (API tests that run outside the servlet container) and the Cactus tests (tests that need to run inside the servler container). But from teh JUnit GUI / plugin, it is another story... One option is to fix the JUnit plugin so that it knows how to properly run the Cactus tests as well (too hard, you need to cactify a WAR etc), or at least knows how to recognize them and ignore them when running from the Eclipse GUI (do you really want to hardcode Cactuis knowledge?). I think the SimplestThingThatCouldPossiblyWork is to add support for filters and let users teach Eclipse what tests it should skip because it just doesn't know how to handle properly. Simple and clean. Bug 40598 also wants to modify the set of tests to be executed from a container. Would like to have a filter for test to run. Some external projects have conventions like *TestManual for TestCases which should only be run manually. Another request is to exclude Abstract Test Cases, e.g. Abstract*Test. Build tools like Maven have such filters, why not Eclipse too? |