[ http://jira.codehaus.org/browse/SUREFIRE-31?page=comments#action_80481 ] 
            
Klaus Wiederaenders commented on SUREFIRE-31:
---------------------------------------------

Hi, here a sample output:

[EMAIL PROTECTED]:~/projects/junit4/xmllistener> [EMAIL 
PROTECTED]:~/projects/junit4/xmllistener> mvn package
[INFO] Scanning for projects...
[INFO] 
----------------------------------------------------------------------------
[INFO] Building JUnit 4 XML Reports
[INFO]    task-segment: [package]
[INFO] 
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://repo1.maven.org/maven2/apache/ant/1.7.ORC1/ant-1.7.ORC1.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
[INFO] [compiler:compile]
Compiling 6 source files to 
/home/klaus/projects/junit4/xmllistener/target/classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 1 source file to 
/home/klaus/projects/junit4/xmllistener/target/test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: 
/home/klaus/projects/junit4/xmllistener/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.jsesoft.junit4.reports.XMLListenerTest
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite date="Sat Nov 18 16:57:12 CET 2006" failures="1" id="1" 
name="org.jsesoft.junit4.reports.ReportSuite" skipped="1" tests="2" 
time="0.133">
  <testcase classname="org.jsesoft.junit4.reports.Report" id="1:4711" 
name="report" state="passed" time="0.013" />
  <testcase classname="org.jsesoft.junit4.reports.Report" id="1:4710" 
message="check-ignore" name="toBeIgnored" state="ignored" time="0.0010" />
  <testcase classname="org.jsesoft.junit4.reports.ReportFail" id="1:4712" 
name="report" state="failed" time="0.018">
    <failure message="failing sample" 
type="report(org.jsesoft.junit4.reports.ReportFail)">java.lang.AssertionError: 
failing sample
        at org.junit.Assert.fail(Assert.java:69)
        at org.junit.Assert.assertTrue(Assert.java:32)
        at org.jsesoft.junit4.reports.ReportFail.report(ReportFail.java:14)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
        at 
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
        at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
        at 
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
        at 
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
        at 
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
        at 
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
        at 
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
        at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
        at 
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
        at 
org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:29)
        at 
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
        at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
        at 
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
        at 
org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:29)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:121)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:100)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:91)
        at 
org.jsesoft.junit4.reports.XMLListenerTest.testXMLListener(XMLListenerTest.java:20)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:228)
        at junit.framework.TestSuite.run(TestSuite.java:223)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
</failure>
  </testcase>
  <system-out><![CDATA[OOOOOOOOOOOOOO
]]></system-out>
  <system-err><![CDATA[EEEEEEEEEEEEE
]]></system-err>
</testsuite>
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.741 sec

Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar: 
/home/klaus/projects/junit4/xmllistener/target/xmllistener-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12 seconds
[INFO] Finished at: Sat Nov 18 16:57:13 CET 2006
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------
[EMAIL PROTECTED]:~/projects/junit4/xmllistener> 

> support junit 4.0
> -----------------
>
>                 Key: SUREFIRE-31
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-31
>             Project: surefire
>          Issue Type: Improvement
>          Components: Junit 4.x support
>            Reporter: John Didion
>             Fix For: 2.1
>
>         Attachments: SUREFIRE-31-maven-surefire-plugin.patch, 
> SUREFIRE-31-surefire-trunk.patch, surefire-junit4.zip, 
> SUREFIRE31_karl_maven-surefire-plugin.patch, 
> SUREFIRE31_karl_surefire_surefire-providers_surefire-junit.patch, 
> SUREFIRE31_karl_surefire_surefire-providers_surefire-junit_2ndMethod.patch
>
>
> I know this is a pretty sizable task. I just wanted to get it in the system 
> now that 4.0 has officially been released. Hopefully this will generate some 
> discussion about how 4.0 will be handled - mainly if it will require a 
> completely seperate implemenation of surefire (keeping the same API so it can 
> easily be used by the maven plugin), or if use of 4.0 will be made a 
> configurable option of the current surefire.
> Here's some additional features I'd like to see:
> 1. Ability to categorize tests. Unfortunately, 4.0 doesn't include an 
> @Category annotation, or make category a parameter of @Test. However, the 
> filtering mechanism provided by 4.0 is sufficent to support categories given 
> the presense of such an annotation. I recommend putting the @Category 
> annotation in a seperate module (surefire-annotations?) and build support for 
> it into surefire. Hopefully the junit guys could be convinced to incorporate 
> it in a later version.
> 2. Similarly, support repeated tests via an @Repeated annotation. I'm not 
> sure how easy this would be to do external to junit.

-- 
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

        

Reply via email to