[
http://jira.codehaus.org/browse/SUREFIRE-381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128404#action_128404
]
Ray Case commented on SUREFIRE-381:
-----------------------------------
This is a better test:
@Test
public void test()
{
Reporter.log("hello0", 0);
Reporter.log("hello1", 1);
Reporter.log("hello2", 2);
Reporter.log("hello3", 3);
Reporter.log("hello4", 4);
Reporter.log("hello5", 5);
Reporter.log("hello stdout", true);
Reporter.log("hello stdout", false);
Reporter.log("hello");
}
(in eclipse I right-click testng - run as test - this is what creates .the
.html output)
When target.test-output.webui.com.xyz.TestNgTest.html is viewed - you will see:
hello0
hello1
hello2
hello stdout
hello stdout
hello
while the com.xyz.TestNgTest.xml has none of the log messages.
Surefire does not seem to create the same TestNG files.
> TestNG Reporter.log() calls don't show up in any reports
> --------------------------------------------------------
>
> Key: SUREFIRE-381
> URL: http://jira.codehaus.org/browse/SUREFIRE-381
> Project: Maven Surefire
> Issue Type: Bug
> Components: TestNG support
> Affects Versions: 2.4
> Reporter: Dan Fabulich
> Fix For: 2.x
>
> Attachments: testng-reporter.zip
>
>
> You can call Reporter.log() in TestNG tests, but it has no effect: the logged
> messages don't appear in the surefire-reports directory, and thus they don't
> appear in the generated site/surefire-report.html file.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira