You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dan Fabulich (JIRA)" <ji...@codehaus.org> on 2007/11/21 03:48:57 UTC
[jira] Created: (SUREFIRE-381) TestNG Reporter.log() calls don't
show up in any reports
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
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
[jira] Commented: (SUREFIRE-381) TestNG Reporter.log() calls don't
show up in any reports
Posted by "Ray Case (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_128073 ]
Ray Case commented on SUREFIRE-381:
-----------------------------------
>From the testng code, TestNG only writes Reporter.log("") to the .html files. If SUREFIRE-474 gets fixed, this will at least partially work.
> 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
[jira] Updated: (SUREFIRE-381) TestNG Reporter.log() calls don't
show up in any reports
Posted by "Dan Fabulich (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Fabulich updated SUREFIRE-381:
----------------------------------
Attachment: testng-reporter.zip
example project that uses the reporter
> 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
> 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
[jira] Updated: (SUREFIRE-381) TestNG Reporter.log() calls don't
show up in any reports
Posted by "Dan Fabulich (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Fabulich updated SUREFIRE-381:
----------------------------------
Fix Version/s: (was: 2.4)
2.x
> 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
[jira] Commented: (SUREFIRE-381) TestNG Reporter.log() calls don't
show up in any reports
Posted by "Ray Case (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Updated: (SUREFIRE-381) TestNG Reporter.log() calls don't
show up in any reports
Posted by "Dan Fabulich (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Fabulich updated SUREFIRE-381:
----------------------------------
Fix Version/s: 2.4
> 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.4
>
> 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
[jira] Commented: (SUREFIRE-381) TestNG Reporter.log() calls don't
show up in any reports
Posted by "Dan Fabulich (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_116434 ]
Dan Fabulich commented on SUREFIRE-381:
---------------------------------------
Now we let testng generate its own XML. It still doesn't appear in any HTML reports, though.
> 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