-
Notifications
You must be signed in to change notification settings - Fork 182
Run Lots Of Testcases
chenkan edited this page Jan 6, 2013
·
3 revisions
It's a easy and pleasant job to manufacture testcases with Dagger, so quickly you will have lots of testcases.
As we said Dagger uses TestNg to organize testcases, and TestNg uses xml file to organize testcases.
Suppose we have two testcases: TestNg.java and TestNgClone.java, so prepare demo.xml (you can find it under test-xml folder) such as:
<suite verbose="10" name="demo" annotations="JDK" time-out="1800000">
<test name="TestNg" junit="false" annotations="JDK">
<classes>
<class name="com.netease.demo.TestNg" />
</classes>
</test>
<test name="TestNgClone" junit="false" annotations="JDK">
<classes>
<class name="com.netease.demo.TestNgClone" />
</classes>
</test>
</suite>
Just run demo.xml as TestNg Suite in Eclipse, then the two testcases will be executed serially (or in parallel mode).
Then you can see emailable-report.html under test-output fold such as: