I have something similar for antunit (unit test written as ant script). I
wanted to integrate antunit test with the IDE (mostly to run the ant tasks
in a java debugger).
I have written a Runner (AntUnitSuiteRunner) that you can use to run a
'proxy' that can be detected by your IDE.
Then, there is a simple protocal between my runner and the 'proxy' class.
It looks like this :
@RunWith(AntUnitSuiteRunner.class)
public class EatYourOwnDogFoodTest {
public static TestSuite suite() {
File script = new File("src/etc/testcases/antunit/java-io.xml");
return new AntUnitSuite(script, EatYourOwnDogFoodTest.class);
}
}
Gilles Scokart
2009/7/6 Arnaud Bailly <arnaud.oqube@...>
>
>
> hello david,
> thanks for your encouraging mail. Right now, I just used the Result
> and RunListener classes and interfaces to manage feedback from my
> tests, but the basic idea is that I would run JUnit with some custom
> runner that would discover "test classes" that would report results.
>
> In a previous JS framework I wrote, the wrapper classes were defined
> statically (ie. each known html test was associated to a defined
> JUnit4 test class) and run with a custom Runner deriving from
> JUnit4BlockRunner (and making use of parameterized btw).
>
> I could have a java class "proxy" that would report results on a given
> runner. Is that what you are thinking of ?
>
> Arnaud
>
>
[Non-text portions of this message have been removed]