well ... this isn't an easy one. the problem is that tests are being built by
the JUnit framework and there are no hooks into that process. If a test build
fails we can only log the error message (this may already happen). If a single
test is broken inside a TDF then a MalformedTestException is thrown and
displayed during a test run, but this does not deal with not well formed TDF's
or broken XSLT stylesheets. We can do one of the following:
1. log errors when either XSLT or XML TDF is broken
2. Have a special BrokenTestCase which fails/errors when executed
3. Drop JUnit and provide our own core framework. I have actually already
implemented this when doing some experiments.
4. Check out JUnit 4.0 to see if it provides any callbacks for the test
I have raised this issue with Erich Gamma at the 2004 JavaOne and he told me he
was aware of the problem; perhaps he fixed this in junit 4,.0
other thoughts anyone?