Permalink
Browse files

[maven-scm] copy for tag xunit-0.1

  • Loading branch information...
1 parent eb63af1 commit a0202eb6dd20d5010c9c8a69b93e742010e632f0 gbois committed Aug 17, 2009
Showing with 5,572 additions and 0 deletions.
  1. +58 −0 xunit/pom.xml
  2. +43 −0 xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/PluginImpl.java
  3. +72 −0 xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/XUnitConfig.java
  4. +276 −0 xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/XUnitPublisher.java
  5. +80 −0 xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/model/TypeConfig.java
  6. +311 −0 xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/transformer/XUnitTransformer.java
  7. +33 −0 xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/types/AUnitDescriptor.java
  8. +33 −0 xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/types/BoostTestDescriptor.java
  9. +33 −0 xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/types/CppUnitDescriptor.java
  10. +10 −0 xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/types/GallioDescriptor.java
  11. +33 −0 xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/types/MSTestDescriptor.java
  12. +10 −0 xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/types/NUnitDescriptor.java
  13. +33 −0 xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/types/PHPUnitDescriptor.java
  14. +51 −0 xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/types/TypeDescriptor.java
  15. +33 −0 xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/types/UnitTestDescriptor.java
  16. +52 −0 xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/util/Messages.java
  17. +104 −0 xunit/src/main/resources/com/thalesgroup/hudson/plugins/xunit/XUnitPublisher/config.jelly
  18. +97 −0 xunit/src/main/resources/com/thalesgroup/hudson/plugins/xunit/transformer/aunit-to-junit.xsl
  19. +170 −0 xunit/src/main/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest-to-junit.xsl
  20. +101 −0 xunit/src/main/resources/com/thalesgroup/hudson/plugins/xunit/transformer/cppunit-to-junit.xsl
  21. +108 −0 xunit/src/main/resources/com/thalesgroup/hudson/plugins/xunit/transformer/gallio-to-junit.xsl
  22. +45 −0 xunit/src/main/resources/com/thalesgroup/hudson/plugins/xunit/transformer/mstest-to-junit.xsl
  23. +71 −0 xunit/src/main/resources/com/thalesgroup/hudson/plugins/xunit/transformer/nunit-to-junit.xsl
  24. +10 −0 xunit/src/main/resources/com/thalesgroup/hudson/plugins/xunit/transformer/phpunit-to-junit.xsl
  25. +44 −0 xunit/src/main/resources/com/thalesgroup/hudson/plugins/xunit/transformer/unittest-to-junit.xsl
  26. +1 −0 xunit/src/main/resources/com/thalesgroup/hudson/plugins/xunit/util/messages.properties
  27. +7 −0 xunit/src/main/webapp/help.html
  28. +11 −0 xunit/src/main/webapp/table-help.html
  29. +48 −0 xunit/src/test/java/com/thalesgroup/hudson/plugins/xunit/AbstractWorkspaceTest.java
  30. +40 −0 xunit/src/test/java/com/thalesgroup/hudson/plugins/xunit/transformer/AUnitTestXSLTest.java
  31. +72 −0 xunit/src/test/java/com/thalesgroup/hudson/plugins/xunit/transformer/AbstractXUnitXSLTest.java
  32. +60 −0 xunit/src/test/java/com/thalesgroup/hudson/plugins/xunit/transformer/BoostTestXSLTest.java
  33. +56 −0 xunit/src/test/java/com/thalesgroup/hudson/plugins/xunit/transformer/CppUnitTestXSLTest.java
  34. +63 −0 xunit/src/test/java/com/thalesgroup/hudson/plugins/xunit/transformer/GallioXSLTest.java
  35. +50 −0 xunit/src/test/java/com/thalesgroup/hudson/plugins/xunit/transformer/MSTestXSLTest.java
  36. +58 −0 xunit/src/test/java/com/thalesgroup/hudson/plugins/xunit/transformer/NUnitXSLTest.java
  37. +40 −0 xunit/src/test/java/com/thalesgroup/hudson/plugins/xunit/transformer/PHPUnitTestXSLTest.java
  38. +40 −0 xunit/src/test/java/com/thalesgroup/hudson/plugins/xunit/transformer/UnitTestXSLTest.java
  39. +182 −0 xunit/src/test/java/com/thalesgroup/hudson/plugins/xunit/transformer/XUnitTransformerTest.java
  40. +46 −0 xunit/src/test/java/com/thalesgroup/hudson/plugins/xunit/transformer/XUnitXSLUtil.java
  41. +25 −0 .../test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/aunit/testcase1/junit-result.xml
  42. +67 −0 ...rc/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/aunit/testcase1/testresult.xml
  43. +4 −0 ...ces/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/autotest-multiple/junit-result.xml
  44. +13 −0 ...t/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/autotest-multiple/test.cpp
  45. +15 −0 ...m/thalesgroup/hudson/plugins/xunit/transformer/boosttest/autotest-multiple/testlog-testresult.xml
  46. +14 −0 ...esources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/autotest-multiple/testlog.xml
  47. +7 −0 ...urces/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/autotest-multiple/testresult.xml
  48. +4 −0 ...st/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/autotest/junit-result.xml
  49. +12 −0 ...t/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/autotest/test.cpp
  50. +15 −0 ...ources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/autotest/testlog-testresult.xml
  51. +9 −0 ...rc/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/autotest/testlog.xml
  52. +7 −0 ...test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/autotest/testresult.xml
  53. +3 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/cmd.cmd
  54. +14 −0 ...t/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/testcase1/junit-result.xml
  55. +29 −0 .../src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/testcase1/test.cpp
  56. +29 −0 ...urces/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/testcase1/testlog-testresult.xml
  57. +23 −0 ...c/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/testcase1/testlog.xml
  58. +15 −0 ...est/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/testcase1/testresult.xml
  59. +9 −0 ...t/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/testcase2/junit-result.xml
  60. +27 −0 .../src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/testcase2/test.cpp
  61. +23 −0 ...urces/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/testcase2/testlog-testresult.xml
  62. +17 −0 ...c/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/testcase2/testlog.xml
  63. +12 −0 ...est/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/testcase2/testresult.xml
  64. +15 −0 ...t/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/testcase3/junit-result.xml
  65. +35 −0 .../src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/testcase3/test.cpp
  66. +29 −0 ...urces/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/testcase3/testlog-testresult.xml
  67. +23 −0 ...c/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/boosttest/testcase3/testlog.xml
  68. +37 −0 .../com/thalesgroup/hudson/plugins/xunit/transformer/cppunit/testcase1/cppunit-successAndFailure.xml
  69. +15 −0 ...est/resources/com/thalesgroup/hudson/plugins/xunit/transformer/cppunit/testcase1/junit-result.xml
  70. +16 −0 ...ources/com/thalesgroup/hudson/plugins/xunit/transformer/cppunit/testcase2/cppunit-zeroFailure.xml
  71. +4 −0 ...est/resources/com/thalesgroup/hudson/plugins/xunit/transformer/cppunit/testcase2/junit-result.xml
  72. +13 −0 .../thalesgroup/hudson/plugins/xunit/transformer/cppunit/testcase3/cppunit-zeroFailureAndSuccess.xml
  73. +2 −0 ...est/resources/com/thalesgroup/hudson/plugins/xunit/transformer/cppunit/testcase3/junit-result.xml
  74. +25 −0 ...ources/com/thalesgroup/hudson/plugins/xunit/transformer/cppunit/testcase4/cppunit-zeroSuccess.xml
  75. +11 −0 ...est/resources/com/thalesgroup/hudson/plugins/xunit/transformer/cppunit/testcase4/junit-result.xml
  76. +337 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/gallio/Gallio-failure.xml
  77. +314 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/gallio/Gallio-ignored.xml
  78. +373 −0 ...t/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/gallio/Gallio-issue1077.xml
  79. +345 −0 .../test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/gallio/Gallio-multinamespace.xml
  80. +328 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/gallio/Gallio-simple.xml
  81. +10 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/gallio/JUnit-failure.xml
  82. +6 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/gallio/JUnit-ignored.xml
  83. +11 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/gallio/JUnit-issue1077.xml
  84. +11 −0 ...c/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/gallio/JUnit-multinamespace.xml
  85. +7 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/gallio/JUnit-simple.xml
  86. +15 −0 ...esources/com/thalesgroup/hudson/plugins/xunit/transformer/mstest/junit_mstest_2_tests_1_class.xml
  87. +15 −0 ...sgroup/hudson/plugins/xunit/transformer/mstest/junit_mstest_2_tests_from_different_assemblies.xml
  88. +25 −0 ...ources/com/thalesgroup/hudson/plugins/xunit/transformer/mstest/junit_mstest_4_tests_2_classes.xml
  89. +55 −0 ...test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/mstest/mstest_2_tests_1_class.trx
  90. +53 −0 .../thalesgroup/hudson/plugins/xunit/transformer/mstest/mstest_2_tests_from_different_assemblies.trx
  91. +86 −0 ...st/resources/com/thalesgroup/hudson/plugins/xunit/transformer/mstest/mstest_4_tests_2_classes.trx
  92. +22 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/nunit/JUnit-failure.xml
  93. +6 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/nunit/JUnit-ignored.xml
  94. +11 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/nunit/JUnit-issue1077.xml
  95. +11 −0 ...rc/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/nunit/JUnit-multinamespace.xml
  96. +7 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/nunit/JUnit-simple.xml
  97. +32 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/nunit/NUnit-failure.xml
  98. +29 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/nunit/NUnit-ignored.xml
  99. +12 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/nunit/NUnit-issue1077.xml
  100. +30 −0 ...rc/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/nunit/NUnit-multinamespace.xml
  101. +20 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/nunit/NUnit-simple.xml
  102. +42 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/nunit/NUnit.xml
  103. +29 −0 xunit/src/test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/nunit/NUnitUnicode.xml
  104. +3 −0 ...est/resources/com/thalesgroup/hudson/plugins/xunit/transformer/phpunit/testcase1/junit-result.xml
  105. +7 −0 .../test/resources/com/thalesgroup/hudson/plugins/xunit/transformer/phpunit/testcase1/testresult.xml
  106. +8 −0 .../resources/com/thalesgroup/hudson/plugins/xunit/transformer/unitTest++/testcase1/junit-result.xml
  107. +9 −0 ...st/resources/com/thalesgroup/hudson/plugins/xunit/transformer/unitTest++/testcase1/testresult.xml
View
@@ -0,0 +1,58 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.jvnet.hudson.plugins</groupId>
+ <artifactId>plugin</artifactId>
+ <version>1.318</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>xunit</artifactId>
+ <version>0.1</version>
+ <packaging>hpi</packaging>
+ <name>Hudson xUnit plugin</name>
+ <url>http://wiki.hudson-ci.org/display/HUDSON/xUnit+Plugin</url>
+
+ <dependencies>
+ <dependency>
+ <groupId>xmlunit</groupId>
+ <artifactId>xmlunit</artifactId>
+ <version>1.1</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-core</artifactId>
+ <version>1.8.0</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-all</artifactId>
+ <version>1.8.0</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <includes>
+ <include>Abstract*.java</include>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <scm>
+ <connection>scm:svn:https://guest@svn.dev.java.net/svn/hudson/tags/xunit-0.1</connection>
+ <developerConnection>scm:svn:https://svn.dev.java.net/svn/hudson/tags/xunit-0.1</developerConnection>
+ <url>https://hudson.dev.java.net/source/browse/hudson/hudson/plugins/xunit/tags/xunit-0.1</url>
+ </scm>
+</project>
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Thales Corporate Services SAS *
+ * Author : Gregory Boissinot *
+ * *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy *
+ * of this software and associated documentation files (the "Software"), to deal*
+ * in the Software without restriction, including without limitation the rights *
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
+ * copies of the Software, and to permit persons to whom the Software is *
+ * furnished to do so, subject to the following conditions: *
+ * *
+ * The above copyright notice and this permission notice shall be included in *
+ * all copies or substantial portions of the Software. *
+ * *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,*
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
+ * THE SOFTWARE. *
+ *******************************************************************************/
+
+package com.thalesgroup.hudson.plugins.xunit;
+
+import hudson.Plugin;
+import hudson.tasks.Publisher;
+
+/**
+ * @author Gregory BOISSINOT
+ */
+public class PluginImpl extends Plugin {
+
+ /**
+ * Registers Doxygen publisher.
+ */
+ @Override
+ public void start() throws Exception {
+ Publisher.PUBLISHERS.add(XUnitPublisher.DESCRIPTOR);
+ super.start();
+ }
+
+}
@@ -0,0 +1,72 @@
+/*******************************************************************************
+* Copyright (c) 2009 Thales Corporate Services SAS *
+* Author : Gregory Boissinot *
+* *
+* Permission is hereby granted, free of charge, to any person obtaining a copy *
+* of this software and associated documentation files (the "Software"), to deal*
+* in the Software without restriction, including without limitation the rights *
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
+* copies of the Software, and to permit persons to whom the Software is *
+* furnished to do so, subject to the following conditions: *
+* *
+* The above copyright notice and this permission notice shall be included in *
+* all copies or substantial portions of the Software. *
+* *
+* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,*
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
+* THE SOFTWARE. *
+*******************************************************************************/
+
+package com.thalesgroup.hudson.plugins.xunit;
+
+import com.thalesgroup.hudson.plugins.xunit.types.*;
+import com.thalesgroup.hudson.plugins.xunit.model.TypeConfig;
+
+import java.util.List;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Map;
+
+public class XUnitConfig {
+
+ public static final Map<String, TypeDescriptor> TOOLS = new HashMap<String, TypeDescriptor>();
+
+ public static void addDescriptor(TypeDescriptor t) {
+ TOOLS.put(t.getName(), t);
+ }
+
+ static {
+ addDescriptor(CppUnitDescriptor.DESCRIPTOR);
+ addDescriptor(BoostTestDescriptor.DESCRIPTOR);
+ addDescriptor(AUnitDescriptor.DESCRIPTOR);
+ addDescriptor(UnitTestDescriptor.DESCRIPTOR);
+ addDescriptor(GallioDescriptor.DESCRIPTOR);
+ addDescriptor(MSTestDescriptor.DESCRIPTOR);
+ addDescriptor(NUnitDescriptor.DESCRIPTOR);
+ addDescriptor(PHPUnitDescriptor.DESCRIPTOR);
+ }
+
+
+ private List<TypeConfig> testTools = new ArrayList<TypeConfig>();
+
+ private List<TypeConfig> customTools = new ArrayList<TypeConfig>();
+
+
+ public XUnitConfig() {
+ for (TypeDescriptor typeDescriptor:TOOLS.values()){
+ testTools.add(new TypeConfig(typeDescriptor.getName(), typeDescriptor.getLabel(),null));
+ }
+ }
+
+ public List<TypeConfig> getTestTools() {
+ return testTools;
+ }
+
+ public List<TypeConfig> getCustomTools() {
+ return customTools;
+ }
+}
Oops, something went wrong.

0 comments on commit a0202eb

Please sign in to comment.