I want print string message for passed test cases. I am able to print message for failure cases using fail()
method. How can I print message for pass cases?
public class TestCaseTesting extends TestCase {
@Test
public void testFailTesting() {
fail("Fail message");
}
@Test
public void testpassTesting() {
//what method i need to write here to show message of pass cases
//fail("Fail message");
}
}
code of build.xml
<target name="generate-report">
<junitreport todir="${reports}">
<fileset dir="${reports}/raw/">
<include name="TEST-*.xml" />
</fileset>
<report format="noframes" todir="${reports}\html\" />
</junitreport>
</target>