diff --git a/src/main/java/org/sonar/plugins/scala/surefire/UnitTestClassReport.java b/src/main/java/org/sonar/plugins/scala/surefire/UnitTestClassReport.java index bfa875b..06b920c 100644 --- a/src/main/java/org/sonar/plugins/scala/surefire/UnitTestClassReport.java +++ b/src/main/java/org/sonar/plugins/scala/surefire/UnitTestClassReport.java @@ -19,10 +19,11 @@ */ package org.sonar.plugins.scala.surefire; -import com.google.common.collect.Lists; - +import java.util.Collections; import java.util.List; +import com.google.common.collect.Lists; + public final class UnitTestClassReport { private long errors = 0L; private long failures = 0L; @@ -46,8 +47,12 @@ public UnitTestClassReport add(UnitTestResult result) { errors += 1; } tests += 1; - durationMilliseconds += result.getDurationMilliseconds(); - return this; + if (result.getDurationMilliseconds() < 0) { + negativeTimeTestNumber += 1; + } else { + durationMilliseconds += result.getDurationMilliseconds(); + } + return this; } private void initResults() { @@ -80,6 +85,13 @@ public long getNegativeTimeTestNumber() { return negativeTimeTestNumber; } + public List getResults() { + if (results == null) { + return Collections.emptyList(); + } + return results; + } + public String toXml() { StringBuilder sb = new StringBuilder(256); sb.append(""); diff --git a/src/main/java/org/sonar/plugins/scala/surefire/UnitTestIndex.java b/src/main/java/org/sonar/plugins/scala/surefire/UnitTestIndex.java index c40b3cb..0c33c76 100644 --- a/src/main/java/org/sonar/plugins/scala/surefire/UnitTestIndex.java +++ b/src/main/java/org/sonar/plugins/scala/surefire/UnitTestIndex.java @@ -19,10 +19,10 @@ */ package org.sonar.plugins.scala.surefire; -import com.google.common.collect.Maps; - import java.util.Map; +import com.google.common.collect.Maps; + public class UnitTestIndex { private Map indexByClassname; @@ -46,5 +46,9 @@ public Map getIndexByClassname() { public int size() { return indexByClassname.size(); } + + public UnitTestClassReport get(String classname) { + return indexByClassname.get(classname); + } } diff --git a/src/test/java/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest.java b/src/test/java/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest.java new file mode 100644 index 0000000..fcec5cc --- /dev/null +++ b/src/test/java/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest.java @@ -0,0 +1,101 @@ +/* + * Sonar Scala Plugin + * Copyright (C) 2011 - 2014 All contributors + * dev@sonar.codehaus.org + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 + */ +package org.sonar.plugins.scala.surefire; + +import org.junit.Before; +import org.junit.Test; +import org.sonar.api.utils.StaxParser; +import org.sonar.test.TestUtils; + +import javax.xml.stream.XMLStreamException; +import java.io.File; + +import static org.hamcrest.CoreMatchers.is; +import static org.hamcrest.Matchers.startsWith; +import static org.junit.Assert.assertThat; + +public class SurefireStaxHandlerTest { + + private UnitTestIndex index; + + @Before + public void setUp() { + index = new UnitTestIndex(); + } + + @Test + public void shouldHaveSkippedTests() throws XMLStreamException { + parse("skippedTests.xml"); + UnitTestClassReport report = index.get("org.sonar.Foo"); + assertThat(report.getTests(), is(3L)); + assertThat(report.getSkipped(), is(1L)); + } + + @Test + public void shouldHaveZeroTests() throws XMLStreamException { + parse("zeroTests.xml"); + assertThat(index.size(), is(0)); + } + + @Test + public void shouldHaveTestOnRootPackage() throws XMLStreamException { + parse("rootPackage.xml"); + assertThat(index.size(), is(1)); + UnitTestClassReport report = index.get("NoPackagesTest"); + assertThat(report.getTests(), is(2L)); + } + + @Test + public void shouldHaveErrorsAndFailures() throws XMLStreamException { + parse("errorsAndFailures.xml"); + UnitTestClassReport report = index.get("org.sonar.Foo"); + assertThat(report.getErrors(), is(1L)); + assertThat(report.getFailures(), is(1L)); + assertThat(report.getResults().size(), is(2)); + + // failure + UnitTestResult failure = report.getResults().get(0); + assertThat(failure.getDurationMilliseconds(), is(5L)); + assertThat(failure.getStatus(), is(UnitTestResult.STATUS_FAILURE)); + assertThat(failure.getName(), is("testOne")); + assertThat(failure.getMessage(), startsWith("expected")); + + // error + UnitTestResult error = report.getResults().get(1); + assertThat(error.getDurationMilliseconds(), is(0L)); + assertThat(error.getStatus(), is(UnitTestResult.STATUS_ERROR)); + assertThat(error.getName(), is("testTwo")); + } + + @Test + public void shouldSupportMultipleSuitesInSameReport() throws XMLStreamException { + parse("multipleSuites.xml"); + + assertThat(index.get("org.sonar.JavaNCSSCollectorTest").getTests(), is(11L)); + assertThat(index.get("org.sonar.SecondTest").getTests(), is(4L)); + } + + private void parse(String path) throws XMLStreamException { + File xml = TestUtils.getResource(getClass(), path); + SurefireStaxHandler staxParser = new SurefireStaxHandler(index); + StaxParser parser = new StaxParser(staxParser, false); + parser.parse(xml); + } +} diff --git a/src/test/java/org/sonar/plugins/scala/surefire/UnitTestClassReportTest.java b/src/test/java/org/sonar/plugins/scala/surefire/UnitTestClassReportTest.java new file mode 100644 index 0000000..f8eedf0 --- /dev/null +++ b/src/test/java/org/sonar/plugins/scala/surefire/UnitTestClassReportTest.java @@ -0,0 +1,57 @@ +/* + * Sonar Scala Plugin + * Copyright (C) 2011 - 2014 All contributors + * dev@sonar.codehaus.org + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 + */ +package org.sonar.plugins.scala.surefire; + +import org.junit.Test; + +import static org.hamcrest.CoreMatchers.is; +import static org.hamcrest.MatcherAssert.assertThat; + +public class UnitTestClassReportTest { + + @Test + public void shouldIncrementCounters() { + UnitTestClassReport report = new UnitTestClassReport(); + report.add(new UnitTestResult().setStatus(UnitTestResult.STATUS_ERROR).setDurationMilliseconds(500L)); + report.add(new UnitTestResult().setStatus(UnitTestResult.STATUS_OK).setDurationMilliseconds(200L)); + //Some negative duration can occur due to bug in surefire. + report.add(new UnitTestResult().setStatus(UnitTestResult.STATUS_OK).setDurationMilliseconds(-200L)); + report.add(new UnitTestResult().setStatus(UnitTestResult.STATUS_SKIPPED)); + + assertThat(report.getResults().size(), is(4)); + assertThat(report.getSkipped(), is(1L)); + assertThat(report.getTests(), is(4L)); + assertThat(report.getDurationMilliseconds(), is(500L + 200L)); + assertThat(report.getErrors(), is(1L)); + assertThat(report.getFailures(), is(0L)); + assertThat(report.getNegativeTimeTestNumber(), is(1L)); + } + + @Test + public void shouldHaveEmptyReport() { + UnitTestClassReport report = new UnitTestClassReport(); + assertThat(report.getResults().size(), is(0)); + assertThat(report.getSkipped(), is(0L)); + assertThat(report.getTests(), is(0L)); + assertThat(report.getDurationMilliseconds(), is(0L)); + assertThat(report.getErrors(), is(0L)); + assertThat(report.getFailures(), is(0L)); + } +} diff --git a/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/errorsAndFailures.xml b/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/errorsAndFailures.xml new file mode 100644 index 0000000..950b847 --- /dev/null +++ b/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/errorsAndFailures.xml @@ -0,0 +1,160 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + java.lang.AssertionError: + expected:<2> but was:<1> + at org.junit.Assert.fail(Assert.java:74) + at org.junit.Assert.failNotEquals(Assert.java:448) + at org.junit.Assert.assertEquals(Assert.java:102) + at org.junit.Assert.assertEquals(Assert.java:323) + at org.junit.Assert.assertEquals(Assert.java:319) + at org.sonar.core.ExtensionsFinderTest.shouldFindJdbcDrivers(ExtensionsFinderTest.java:45) + 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.TestMethod.invoke(TestMethod.java:59) + at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98) + at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79) + at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87) + at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77) + at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42) + at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88) + at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51) + at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44) + at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27) + at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37) + at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42) + at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) + at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) + at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) + at org.apache.maven.surefire.Surefire.run(Surefire.java:177) + 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:338) + at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) + + + + java.lang.RuntimeException: TEST + at org.sonar.core.ExtensionsFinderTest.shouldFindPlugins(ExtensionsFinderTest.java:57) + 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.TestMethod.invoke(TestMethod.java:59) + at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98) + at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79) + at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87) + at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77) + at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42) + at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88) + at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51) + at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44) + at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27) + at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37) + at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42) + at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) + at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) + at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) + at org.apache.maven.surefire.Surefire.run(Surefire.java:177) + 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:338) + at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) + + + \ No newline at end of file diff --git a/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/innerClasses.xml b/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/innerClasses.xml new file mode 100644 index 0000000..e3f5933 --- /dev/null +++ b/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/innerClasses.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + java.io.InvalidClassException: + org.apache.commons.collections.FastArrayList; + local class incompatible: stream classdesc serialVersionUID = 1566341225434603896, local class serialVersionUID = + 7918928878747177577 + at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562) + at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583) + at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) + at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) + at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) + at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) + at org.apache.commons.collections.AbstractTestObject.readExternalFormFromStream(AbstractTestObject.java:326) + at org.apache.commons.collections.AbstractTestObject.readExternalFormFromDisk(AbstractTestObject.java:301) + at org.apache.commons.collections.list.AbstractTestList.testEmptyListCompatibility(AbstractTestList.java:1077) + 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:597) + 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 junit.framework.TestSuite.runTest(TestSuite.java:208) + at junit.framework.TestSuite.run(TestSuite.java:203) + 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:597) + at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213) + at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) + at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) + at org.apache.maven.surefire.Surefire.run(Surefire.java:177) + 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:597) + at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) + at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) + + + \ No newline at end of file diff --git a/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/multipleSuites.xml b/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/multipleSuites.xml new file mode 100644 index 0000000..e5bd8c0 --- /dev/null +++ b/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/multipleSuites.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/rootPackage.xml b/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/rootPackage.xml new file mode 100644 index 0000000..d3bb90a --- /dev/null +++ b/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/rootPackage.xml @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/skippedTests.xml b/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/skippedTests.xml new file mode 100644 index 0000000..7268a35 --- /dev/null +++ b/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/skippedTests.xml @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + java.lang.AssertionError: + expected:<2> but was:<1> + at org.junit.Assert.fail(Assert.java:74) + at org.junit.Assert.failNotEquals(Assert.java:448) + at org.junit.Assert.assertEquals(Assert.java:102) + at org.junit.Assert.assertEquals(Assert.java:323) + at org.junit.Assert.assertEquals(Assert.java:319) + at org.sonar.core.ExtensionsFinderTest.shouldFindJdbcDrivers(ExtensionsFinderTest.java:45) + 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.TestMethod.invoke(TestMethod.java:59) + at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98) + at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79) + at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87) + at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77) + at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42) + at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88) + at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51) + at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44) + at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27) + at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37) + at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42) + at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) + at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) + at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) + at org.apache.maven.surefire.Surefire.run(Surefire.java:177) + 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:338) + at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) + + + + + + + \ No newline at end of file diff --git a/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/suiteInnerClass.xml b/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/suiteInnerClass.xml new file mode 100644 index 0000000..9984c04 --- /dev/null +++ b/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/suiteInnerClass.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/zeroTests.xml b/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/zeroTests.xml new file mode 100644 index 0000000..fb55bf5 --- /dev/null +++ b/src/test/resources/org/sonar/plugins/scala/surefire/SurefireStaxHandlerTest/zeroTests.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file