http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/4dfdb08c/surefire-report-parser/src/test/resources/test-reports/TEST-com.shape.PointTest.xml ---------------------------------------------------------------------- diff --git a/surefire-report-parser/src/test/resources/test-reports/TEST-com.shape.PointTest.xml b/surefire-report-parser/src/test/resources/test-reports/TEST-com.shape.PointTest.xml new file mode 100644 index 0000000..7dda584 --- /dev/null +++ b/surefire-report-parser/src/test/resources/test-reports/TEST-com.shape.PointTest.xml @@ -0,0 +1,142 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> + +<testsuite errors="0" tests="3" time="0.01" failures="1" name="com.shape.PointTest"> + <properties> + <property value="Java(TM) 2 Runtime Environment, Standard Edition" name="java.runtime.name"/> + <property value="c:\japps\jdk1.5.0_04\jre\bin" name="sun.boot.library.path"/> + <property value="1.5.0_04-b05" name="java.vm.version"/> + <property value="Sun Microsystems Inc." name="java.vm.vendor"/> + <property value="http://java.sun.com/" name="java.vendor.url"/> + <property value=";" name="path.separator"/> + <property value="Java HotSpot(TM) Client VM" name="java.vm.name"/> + <property value="sun.io" name="file.encoding.pkg"/> + <property value="US" name="user.country"/> + <property value="Service Pack 2" name="sun.os.patch.level"/> + <property value="Java Virtual Machine Specification" name="java.vm.specification.name"/> + <property value="C:\JAppsCode\mergere-maven\plugins\sample-projects\junit-report-tester" name="user.dir"/> + <property value="1.5.0_04-b05" name="java.runtime.version"/> + <property value="sun.awt.Win32GraphicsEnvironment" name="java.awt.graphicsenv"/> + <property value="C:\JAppsCode\mergere-maven\plugins\sample-projects\junit-report-tester" name="basedir"/> + <property value="c:\japps\jdk1.5.0_04\jre\lib\endorsed" name="java.endorsed.dirs"/> + <property value="x86" name="os.arch"/> + <property value="C:\DOCUME~1\Jontri\LOCALS~1\Temp\" name="java.io.tmpdir"/> + <property value=" +" name="line.separator"/> + <property value="Sun Microsystems Inc." name="java.vm.specification.vendor"/> + <property value="" name="user.variant"/> + <property value="Windows XP" name="os.name"/> + <property value="C:\JApps\maven-2.0-beta-1\bin\m2.conf" name="classworlds.conf"/> + <property value="Cp1252" name="sun.jnu.encoding"/> + <property + value="c:\japps\jdk1.5.0_04\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\JApps\maven-2.0-beta-1\bin;C:\JApps\maven-1.0.2\bin;c:\BatchFile;C:\Program Files\cvsnt;C:\JApps\svn-1.1.4\bin;C:\JApps\ant-1.6.2\bin;" + name="java.library.path"/> + <property value="Java Platform API Specification" name="java.specification.name"/> + <property value="49.0" name="java.class.version"/> + <property value="HotSpot Client Compiler" name="sun.management.compiler"/> + <property value="5.1" name="os.version"/> + <property value="C:\Documents and Settings\Jontri" name="user.home"/> + <property value="Asia/Shanghai" name="user.timezone"/> + <property value="sun.awt.windows.WPrinterJob" name="java.awt.printerjob"/> + <property value="Cp1252" name="file.encoding"/> + <property value="1.5" name="java.specification.version"/> + <property value="Jontri" name="user.name"/> + <property value="C:\JApps\maven-2.0-beta-1\core\boot\classworlds-1.1-alpha-2.jar" name="java.class.path"/> + <property value="1.0" name="java.vm.specification.version"/> + <property value="32" name="sun.arch.data.model"/> + <property value="c:\japps\jdk1.5.0_04\jre" name="java.home"/> + <property value="Sun Microsystems Inc." name="java.specification.vendor"/> + <property value="en" name="user.language"/> + <property value="sun.awt.windows.WToolkit" name="awt.toolkit"/> + <property value="mixed mode, sharing" name="java.vm.info"/> + <property value="1.5.0_04" name="java.version"/> + <property value="c:\japps\jdk1.5.0_04\jre\lib\ext" name="java.ext.dirs"/> + <property + value="c:\japps\jdk1.5.0_04\jre\lib\rt.jar;c:\japps\jdk1.5.0_04\jre\lib\i18n.jar;c:\japps\jdk1.5.0_04\jre\lib\sunrsasign.jar;c:\japps\jdk1.5.0_04\jre\lib\jsse.jar;c:\japps\jdk1.5.0_04\jre\lib\jce.jar;c:\japps\jdk1.5.0_04\jre\lib\charsets.jar;c:\japps\jdk1.5.0_04\jre\classes" + name="sun.boot.class.path"/> + <property value="Sun Microsystems Inc." name="java.vendor"/> + <property value="C:\JApps\maven-2.0-beta-1" name="maven.home"/> + <property value="C:\Documents and Settings\Jontri\.m2\repository" name="localRepository"/> + <property value="\" name="file.separator"/> + <property value="http://java.sun.com/cgi-bin/bugreport.cgi" name="java.vendor.url.bug"/> + <property value="little" name="sun.cpu.endian"/> + <property value="UnicodeLittle" name="sun.io.unicode.encoding"/> + <property value="windows" name="sun.desktop"/> + <property value="pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86" name="sun.cpu.isalist"/> + </properties> + <testcase time="0" name="testX"/> + <testcase time="0" name="testY"/> + <testcase time="0" name="testXY"> + <failure type="junit.framework.AssertionFailedError" message="expected:<0> but was:<1>"> + junit.framework.AssertionFailedError: expected:<0> but was:<1> + at junit.framework.Assert.fail(Assert.java:47) + at junit.framework.Assert.failNotEquals(Assert.java:282) + at junit.framework.Assert.assertEquals(Assert.java:64) + at junit.framework.Assert.assertEquals(Assert.java:201) + at junit.framework.Assert.assertEquals(Assert.java:207) + at com.shape.PointTest.testXY(PointTest.java:28) + 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:154) + at junit.framework.TestCase.runBare(TestCase.java:127) + at junit.framework.TestResult$1.protect(TestResult.java:106) + at junit.framework.TestResult.runProtected(TestResult.java:124) + at junit.framework.TestResult.run(TestResult.java:109) + at junit.framework.TestCase.run(TestCase.java:118) + at junit.framework.TestSuite.runTest(TestSuite.java:208) + at junit.framework.TestSuite.run(TestSuite.java:203) + 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.codehaus.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:246) + at org.codehaus.surefire.battery.JUnitBattery.execute(JUnitBattery.java:220) + at org.codehaus.surefire.Surefire.executeBattery(Surefire.java:203) + at org.codehaus.surefire.Surefire.run(Surefire.java:152) + at org.codehaus.surefire.Surefire.run(Surefire.java:76) + 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.codehaus.surefire.SurefireBooter.run(SurefireBooter.java:104) + at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:241) + at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:357) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:479) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:452) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:438) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:131) + at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186) + at org.apache.maven.cli.MavenCli.main(MavenCli.java:316) + 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) + at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) + at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) + at org.codehaus.classworlds.Launcher.main(Launcher.java:375) + </failure> + <system-out></system-out> + <system-err></system-err> + </testcase> +</testsuite> \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/4dfdb08c/surefire-report-parser/src/test/resources/test-reports/TEST-junit.twoTestCaseSuite.WrapperTestSuite.xml ---------------------------------------------------------------------- diff --git a/surefire-report-parser/src/test/resources/test-reports/TEST-junit.twoTestCaseSuite.WrapperTestSuite.xml b/surefire-report-parser/src/test/resources/test-reports/TEST-junit.twoTestCaseSuite.WrapperTestSuite.xml new file mode 100644 index 0000000..cd94387 --- /dev/null +++ b/surefire-report-parser/src/test/resources/test-reports/TEST-junit.twoTestCaseSuite.WrapperTestSuite.xml @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<testsuite errors="0" skipped="0" tests="2" time="0.094" failures="0" name="junit.twoTestCaseSuite.WrapperTestSuite"> + <properties> + <property value="Java(TM) 2 Runtime Environment, Standard Edition" name="java.runtime.name"/> + <property value="C:\devtools\jdk1.5.0_12\jre\bin" name="sun.boot.library.path"/> + <property value="1.5.0_12-b04" name="java.vm.version"/> + <property value="Sun Microsystems Inc." name="java.vm.vendor"/> + <property value="http://java.sun.com/" name="java.vendor.url"/> + <property value=";" name="path.separator"/> + <property value="Java HotSpot(TM) Client VM" name="java.vm.name"/> + <property value="sun.io" name="file.encoding.pkg"/> + <property value="US" name="user.country"/> + <property value="SUN_STANDARD" name="sun.java.launcher"/> + <property value="Service Pack 2" name="sun.os.patch.level"/> + <property value="Java Virtual Machine Specification" name="java.vm.specification.name"/> + <property value="C:\svn\maven\trunks\surefire\surefire-integration-tests\src\test\resources\junit-twoTestCaseSuite" + name="user.dir"/> + <property value="1.5.0_12-b04" name="java.runtime.version"/> + <property value="sun.awt.Win32GraphicsEnvironment" name="java.awt.graphicsenv"/> + <property value="C:\svn\maven\trunks\surefire\surefire-integration-tests\src\test\resources\junit-twoTestCaseSuite" + name="basedir"/> + <property value="C:\devtools\jdk1.5.0_12\jre\lib\endorsed" name="java.endorsed.dirs"/> + <property value="x86" name="os.arch"/> + <property value="C:\DOCUME~1\DAN~1.FAB\LOCALS~1\Temp\" name="java.io.tmpdir"/> + <property value=" +" name="line.separator"/> + <property value="Sun Microsystems Inc." name="java.vm.specification.vendor"/> + <property value="" name="user.variant"/> + <property value="Windows XP" name="os.name"/> + <property value="C:\devtools\maven-2.0.8\bin\m2.conf" name="classworlds.conf"/> + <property value="Cp1252" name="sun.jnu.encoding"/> + <property + value="C:\devtools\jdk1.5.0_12\bin;.;C:\WINDOWS\system32;C:\WINDOWS;c:\devtools\apache-ant-1.7.0\bin;C:\Python25;C:\Perl\bin;C:\devtools\php-5.2.3\;c:\devtools\ruby-1.8.6-25\bin;C:\devtools\jdk1.5.0_12\bin;C:\devtools\maven-2.0.8\bin;c:\dan\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\IDM Computer Solutions\UltraEdit-32;C:\Program Files\Subversion\bin;C:\Program Files\cvsnt;C:\Program Files\GNU\GnuPG\pub;c:\cygwin\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\PostgreSQL\8.2\bin;C:\Program Files\Perforce;" + name="java.library.path"/> + <property + value="C:\svn\maven\trunks\surefire\surefire-integration-tests\src\test\resources\junit-twoTestCaseSuite\target\test-classes;C:\svn\maven\trunks\surefire\surefire-integration-tests\src\test\resources\junit-twoTestCaseSuite\target\classes;c:\weirdlocalrepo\junit\junit\3.8.1\junit-3.8.1.jar;" + name="surefire.test.class.path"/> + <property value="Java Platform API Specification" name="java.specification.name"/> + <property value="49.0" name="java.class.version"/> + <property value="HotSpot Client Compiler" name="sun.management.compiler"/> + <property value="5.1" name="os.version"/> + <property value="C:\Documents and Settings\dan.fabulich" name="user.home"/> + <property value="America/Los_Angeles" name="user.timezone"/> + <property value="sun.awt.windows.WPrinterJob" name="java.awt.printerjob"/> + <property value="1.5" name="java.specification.version"/> + <property value="Cp1252" name="file.encoding"/> + <property value="dan.fabulich" name="user.name"/> + <property value="C:\devtools\maven-2.0.8\boot\classworlds-1.1.jar" name="java.class.path"/> + <property value="1.0" name="java.vm.specification.version"/> + <property value="32" name="sun.arch.data.model"/> + <property value="C:\devtools\jdk1.5.0_12\jre" name="java.home"/> + <property value="Sun Microsystems Inc." name="java.specification.vendor"/> + <property value="en" name="user.language"/> + <property value="sun.awt.windows.WToolkit" name="awt.toolkit"/> + <property value="mixed mode" name="java.vm.info"/> + <property value="1.5.0_12" name="java.version"/> + <property value="C:\devtools\jdk1.5.0_12\jre\lib\ext" name="java.ext.dirs"/> + <property + value="C:\devtools\jdk1.5.0_12\jre\lib\rt.jar;C:\devtools\jdk1.5.0_12\jre\lib\i18n.jar;C:\devtools\jdk1.5.0_12\jre\lib\sunrsasign.jar;C:\devtools\jdk1.5.0_12\jre\lib\jsse.jar;C:\devtools\jdk1.5.0_12\jre\lib\jce.jar;C:\devtools\jdk1.5.0_12\jre\lib\charsets.jar;C:\devtools\jdk1.5.0_12\jre\classes" + name="sun.boot.class.path"/> + <property value="Sun Microsystems Inc." name="java.vendor"/> + <property value="C:\devtools\maven-2.0.8" name="maven.home"/> + <property value="c:\weirdlocalrepo" name="localRepository"/> + <property value="\" name="file.separator"/> + <property value="http://java.sun.com/cgi-bin/bugreport.cgi" name="java.vendor.url.bug"/> + <property value="little" name="sun.cpu.endian"/> + <property value="UnicodeLittle" name="sun.io.unicode.encoding"/> + <property value="windows" name="sun.desktop"/> + <property value="pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86" name="sun.cpu.isalist"/> + </properties> + <testcase classname="junit.twoTestCaseSuite.TestTwo" time="0" name="testTwo"/> + <testcase classname="junit.twoTestCaseSuite.BasicTest" time="0" name="testSetUp"/> +</testsuite> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/4dfdb08c/surefire-report-parser/src/test/resources/test-reports/com.shape.CircleTest.txt ---------------------------------------------------------------------- diff --git a/surefire-report-parser/src/test/resources/test-reports/com.shape.CircleTest.txt b/surefire-report-parser/src/test/resources/test-reports/com.shape.CircleTest.txt new file mode 100644 index 0000000..5030dee --- /dev/null +++ b/surefire-report-parser/src/test/resources/test-reports/com.shape.CircleTest.txt @@ -0,0 +1,122 @@ +------------------------------------------------------------------------------- +Battery: com.shape.CircleTest +------------------------------------------------------------------------------- +testX(com.shape.CircleTest) +testY(com.shape.CircleTest) +testXY(com.shape.CircleTest) +testRadius(com.shape.CircleTest) + +[ stdout ] --------------------------------------------------------------- + + +[ stderr ] --------------------------------------------------------------- + + +[ stacktrace ] ----------------------------------------------------------- + +junit.framework.AssertionFailedError: expected:<20> but was:<10> + at junit.framework.Assert.fail(Assert.java:47) + at junit.framework.Assert.failNotEquals(Assert.java:282) + at junit.framework.Assert.assertEquals(Assert.java:64) + at junit.framework.Assert.assertEquals(Assert.java:201) + at junit.framework.Assert.assertEquals(Assert.java:207) + at com.shape.CircleTest.testRadius(CircleTest.java:34) + 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:154) + at junit.framework.TestCase.runBare(TestCase.java:127) + at junit.framework.TestResult$1.protect(TestResult.java:106) + at junit.framework.TestResult.runProtected(TestResult.java:124) + at junit.framework.TestResult.run(TestResult.java:109) + at junit.framework.TestCase.run(TestCase.java:118) + at junit.framework.TestSuite.runTest(TestSuite.java:208) + at junit.framework.TestSuite.run(TestSuite.java:203) + 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.codehaus.surefire.battery.JUnitBattery.execute(JUnitBattery.java:190) + at org.codehaus.surefire.Surefire.executeBattery(Surefire.java:155) + at org.codehaus.surefire.Surefire.run(Surefire.java:105) + at org.codehaus.surefire.Surefire.run(Surefire.java:59) + 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.codehaus.surefire.SurefireBooter.run(SurefireBooter.java:83) + at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:218) + at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:361) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:472) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:445) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:431) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:127) + at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186) + at org.apache.maven.cli.MavenCli.main(MavenCli.java:292) + 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) + at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) + at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) + at org.codehaus.classworlds.Launcher.main(Launcher.java:375) +testProperties(com.shape.CircleTest) + +[ stdout ] --------------------------------------------------------------- + + +[ stderr ] --------------------------------------------------------------- + + +[ stacktrace ] ----------------------------------------------------------- + +java.lang.ArithmeticException: / by zero + at com.shape.CircleTest.testProperties(CircleTest.java:44) + 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:154) + at junit.framework.TestCase.runBare(TestCase.java:127) + at junit.framework.TestResult$1.protect(TestResult.java:106) + at junit.framework.TestResult.runProtected(TestResult.java:124) + at junit.framework.TestResult.run(TestResult.java:109) + at junit.framework.TestCase.run(TestCase.java:118) + at junit.framework.TestSuite.runTest(TestSuite.java:208) + at junit.framework.TestSuite.run(TestSuite.java:203) + 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.codehaus.surefire.battery.JUnitBattery.execute(JUnitBattery.java:190) + at org.codehaus.surefire.Surefire.executeBattery(Surefire.java:155) + at org.codehaus.surefire.Surefire.run(Surefire.java:105) + at org.codehaus.surefire.Surefire.run(Surefire.java:59) + 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.codehaus.surefire.SurefireBooter.run(SurefireBooter.java:83) + at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:218) + at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:361) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:472) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:445) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:431) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:127) + at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186) + at org.apache.maven.cli.MavenCli.main(MavenCli.java:292) + 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) + at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) + at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) + at org.codehaus.classworlds.Launcher.main(Launcher.java:375) +testPI(com.shape.CircleTest) +testCircumference(com.shape.CircleTest) +testDiameter(com.shape.CircleTest) http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/4dfdb08c/surefire-report-parser/src/test/resources/test-reports/com.shapeclone.CircleTest.txt ---------------------------------------------------------------------- diff --git a/surefire-report-parser/src/test/resources/test-reports/com.shapeclone.CircleTest.txt b/surefire-report-parser/src/test/resources/test-reports/com.shapeclone.CircleTest.txt new file mode 100644 index 0000000..90e3239 --- /dev/null +++ b/surefire-report-parser/src/test/resources/test-reports/com.shapeclone.CircleTest.txt @@ -0,0 +1,122 @@ +------------------------------------------------------------------------------- +Battery: com.shapeclone.CircleTest +------------------------------------------------------------------------------- +testX(com.shapeclone.CircleTest) +testY(com.shapeclone.CircleTest) +testXY(com.shapeclone.CircleTest) +testRadius(com.shapeclone.CircleTest) + +[ stdout ] --------------------------------------------------------------- + + +[ stderr ] --------------------------------------------------------------- + + +[ stacktrace ] ----------------------------------------------------------- + +junit.framework.AssertionFailedError: expected:<20> but was:<10> + at junit.framework.Assert.fail(Assert.java:47) + at junit.framework.Assert.failNotEquals(Assert.java:282) + at junit.framework.Assert.assertEquals(Assert.java:64) + at junit.framework.Assert.assertEquals(Assert.java:201) + at junit.framework.Assert.assertEquals(Assert.java:207) + at com.shapeclone.CircleTest.testRadius(CircleTest.java:34) + 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:154) + at junit.framework.TestCase.runBare(TestCase.java:127) + at junit.framework.TestResult$1.protect(TestResult.java:106) + at junit.framework.TestResult.runProtected(TestResult.java:124) + at junit.framework.TestResult.run(TestResult.java:109) + at junit.framework.TestCase.run(TestCase.java:118) + at junit.framework.TestSuite.runTest(TestSuite.java:208) + at junit.framework.TestSuite.run(TestSuite.java:203) + 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.codehaus.surefire.battery.JUnitBattery.execute(JUnitBattery.java:190) + at org.codehaus.surefire.Surefire.executeBattery(Surefire.java:155) + at org.codehaus.surefire.Surefire.run(Surefire.java:105) + at org.codehaus.surefire.Surefire.run(Surefire.java:59) + 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.codehaus.surefire.SurefireBooter.run(SurefireBooter.java:83) + at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:218) + at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:361) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:472) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:445) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:431) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:127) + at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186) + at org.apache.maven.cli.MavenCli.main(MavenCli.java:292) + 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) + at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) + at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) + at org.codehaus.classworlds.Launcher.main(Launcher.java:375) +testProperties(com.shapeclone.CircleTest) + +[ stdout ] --------------------------------------------------------------- + + +[ stderr ] --------------------------------------------------------------- + + +[ stacktrace ] ----------------------------------------------------------- + +java.lang.ArithmeticException: / by zero + at com.shapeclone.CircleTest.testProperties(CircleTest.java:44) + 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:154) + at junit.framework.TestCase.runBare(TestCase.java:127) + at junit.framework.TestResult$1.protect(TestResult.java:106) + at junit.framework.TestResult.runProtected(TestResult.java:124) + at junit.framework.TestResult.run(TestResult.java:109) + at junit.framework.TestCase.run(TestCase.java:118) + at junit.framework.TestSuite.runTest(TestSuite.java:208) + at junit.framework.TestSuite.run(TestSuite.java:203) + 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.codehaus.surefire.battery.JUnitBattery.execute(JUnitBattery.java:190) + at org.codehaus.surefire.Surefire.executeBattery(Surefire.java:155) + at org.codehaus.surefire.Surefire.run(Surefire.java:105) + at org.codehaus.surefire.Surefire.run(Surefire.java:59) + 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.codehaus.surefire.SurefireBooter.run(SurefireBooter.java:83) + at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:218) + at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:361) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:472) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:445) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:431) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) + at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:127) + at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186) + at org.apache.maven.cli.MavenCli.main(MavenCli.java:292) + 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) + at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) + at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) + at org.codehaus.classworlds.Launcher.main(Launcher.java:375) +testPI(com.shapeclone.CircleTest) +testCircumference(com.shapeclone.CircleTest) +testDiameter(com.shapeclone.CircleTest)