|
From: Paul B. <pa...@em...> - 2003-02-27 15:31:16
|
Hi there -
I was wondering if anyone has any example code for how to set up TestCases
and how to run TestSuites using HTML-Unit. Usually, in other testing X-Unit
testing frameworks, you do something like:
class MyTestCase extends TestCase {
public void testMyTest1() {
if (errorCheckFails) {
this.fail("test failed");
}
}
public static void main() {
TestSuite suite = new TestSuite();
suite.add(new MyTestCase());
suite.run();
}
}
But I havent found any example code on the web page for doing this...anyone
care to post a snippet to the list?
Also, is there any web or GUI interface for HTML-Unit so you can click on a
"Run" button and see pretty green lights when everything works?
-Paul
|