Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Sonar => SonarQube

commit 875e27f4994d1a0c69578bc9517aab6da089a8ae 1 parent 1e925ad
David RACODON authored
Showing with 321 additions and 2,064 deletions.
  1. +2 −2 plugins/sonar-checkstyle-extension-plugin/README.md
  2. +2 −2 plugins/sonar-pmd-extension-plugin/README.md
  3. +1 −1  plugins/sonar-reference-plugin/pom.xml
  4. +3 −3 projects/android/README.md
  5. +0 −1  projects/android/pom.xml
  6. +0 −17 projects/code-coverage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-multimodule-maven-jacoco/README.md
  7. +0 −46 ...cts/code-coverage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-multimodule-maven-jacoco/app-it/pom.xml
  8. +0 −12 ...nar 3.4/combined-ut-it-multimodule-maven-jacoco/app-it/src/test/java/example/HelloWorldIntegrationTest.java
  9. +0 −15 projects/code-coverage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-multimodule-maven-jacoco/app/pom.xml
  10. +0 −20 ...ut-it/_Prior to Sonar 3.4/combined-ut-it-multimodule-maven-jacoco/app/src/main/java/example/HelloWorld.java
  11. +0 −12 ...rior to Sonar 3.4/combined-ut-it-multimodule-maven-jacoco/app/src/test/java/example/HelloWorldUnitTest.java
  12. +0 −85 projects/code-coverage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-multimodule-maven-jacoco/pom.xml
  13. +0 −13 projects/code-coverage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-sonar-runner-jacoco/README.md
  14. BIN  ...rage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-sonar-runner-jacoco/classes/example/HelloWorld.class
  15. BIN  ...overage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-sonar-runner-jacoco/reports/jacoco/jacoco-it.exec
  16. BIN  ...overage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-sonar-runner-jacoco/reports/jacoco/jacoco-ut.exec
  17. +0 −63 ...it/_Prior to Sonar 3.4/combined-ut-it-sonar-runner-jacoco/reports/junit/TEST-example.HelloWorldUnitTest.xml
  18. +0 −4 ...d ut-it/_Prior to Sonar 3.4/combined-ut-it-sonar-runner-jacoco/reports/junit/example.HelloWorldUnitTest.txt
  19. +0 −25 ...ode-coverage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-sonar-runner-jacoco/sonar-project.properties
  20. +0 −20 ...erage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-sonar-runner-jacoco/sources/example/HelloWorld.java
  21. +3 −3 projects/code-coverage/combined ut-it/combined-ut-it-multimodule-maven-jacoco/README.md
  22. +4 −4 projects/code-coverage/combined ut-it/combined-ut-it-sonar-runner-jacoco/README.md
  23. +5 −5 projects/code-coverage/combined ut-it/combined-ut-it-sonar-runner-jacoco/sonar-project.properties
  24. +3 −3 projects/code-coverage/it/ant/it-jacoco-ant/README.md
  25. +2 −2 projects/code-coverage/it/maven/it-jacoco-maven/README.md
  26. +1 −1  projects/code-coverage/it/maven/it-jacoco-maven/pom.xml
  27. +4 −4 projects/code-coverage/it/sonar-runner/it-jacoco-sonar-runner/README.md
  28. +1 −1  projects/code-coverage/it/sonar-runner/it-jacoco-sonar-runner/sonar-project.properties
  29. +0 −17 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/README.md
  30. +0 −71 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/build.xml
  31. BIN  projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/lib/junit-4.10.jar
  32. +0 −66 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/module1/build.xml
  33. +0 −11 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/module1/src/One.java
  34. +0 −11 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/module1/test/OneTest.java
  35. +0 −66 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/module2/build.xml
  36. +0 −16 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/module2/src/Two.java
  37. +0 −11 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/module2/test/TwoTest.java
  38. +0 −16 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-reuseReports/README.md
  39. +0 −69 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-reuseReports/build.xml
  40. BIN  projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-reuseReports/reports/coverage/jacoco.exec
  41. +0 −91 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-reuseReports/reports/junit/TEST-OneTest.xml
  42. +0 −11 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-reuseReports/src/One.java
  43. +0 −17 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-runTests/README.md
  44. +0 −105 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-runTests/build.xml
  45. BIN  projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-runTests/lib/junit-4.10.jar
  46. +0 −11 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-runTests/src/One.java
  47. +0 −12 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-runTests/test/OneTest.java
  48. +0 −19 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-cobertura-runTests/README.md
  49. +0 −42 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-cobertura-runTests/pom.xml
  50. +0 −13 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-cobertura-runTests/src/main/java/example/One.java
  51. +0 −13 ...s/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-cobertura-runTests/src/test/java/example/OneTest.java
  52. +0 −19 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-reuseReports/README.md
  53. +0 −41 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-reuseReports/pom.xml
  54. BIN  projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-reuseReports/reports/emma/coverage-0.ec
  55. BIN  projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-reuseReports/reports/emma/coverage.em
  56. +0 −64 ...ode-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-reuseReports/reports/junit/TEST-example.OneTest.xml
  57. +0 −4 ...cts/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-reuseReports/reports/junit/example.OneTest.txt
  58. +0 −13 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-reuseReports/src/main/java/example/One.java
  59. +0 −20 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-runTests/README.md
  60. +0 −42 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-runTests/pom.xml
  61. +0 −13 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-runTests/src/main/java/example/One.java
  62. +0 −13 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-runTests/src/test/java/example/OneTest.java
  63. +0 −18 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-jacoco-reuseReports/README.md
  64. +0 −41 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-jacoco-reuseReports/pom.xml
  65. BIN  projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-jacoco-reuseReports/reports/coverage/jacoco.exec
  66. +0 −64 ...e-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-jacoco-reuseReports/reports/junit/TEST-example.OneTest.xml
  67. +0 −4 ...s/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-jacoco-reuseReports/reports/junit/example.OneTest.txt
  68. +0 −13 ...ects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-jacoco-reuseReports/src/main/java/example/One.java
  69. +0 −18 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-jacoco-runTests/README.md
  70. +0 −43 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-jacoco-runTests/pom.xml
  71. +0 −13 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-jacoco-runTests/src/main/java/example/One.java
  72. +0 −13 ...ects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-jacoco-runTests/src/test/java/example/OneTest.java
  73. +0 −13 projects/code-coverage/ut/_Prior to Sonar 3.4/sonar-runner/ut-sonarRunner-jacoco-reuseReports/README.md
  74. BIN  ...ects/code-coverage/ut/_Prior to Sonar 3.4/sonar-runner/ut-sonarRunner-jacoco-reuseReports/classes/One.class
  75. BIN  ...overage/ut/_Prior to Sonar 3.4/sonar-runner/ut-sonarRunner-jacoco-reuseReports/reports/coverage/jacoco.exec
  76. +0 −91 ...erage/ut/_Prior to Sonar 3.4/sonar-runner/ut-sonarRunner-jacoco-reuseReports/reports/junit/TEST-OneTest.xml
  77. +0 −22 ...de-coverage/ut/_Prior to Sonar 3.4/sonar-runner/ut-sonarRunner-jacoco-reuseReports/sonar-project.properties
  78. +0 −11 projects/code-coverage/ut/_Prior to Sonar 3.4/sonar-runner/ut-sonarRunner-jacoco-reuseReports/src/One.java
  79. +4 −4 projects/code-coverage/ut/ant/ut-ant-jacoco-modules-runTests/README.md
  80. +4 −4 projects/code-coverage/ut/ant/ut-ant-jacoco-modules-runTests/build.xml
  81. +3 −3 projects/code-coverage/ut/ant/ut-ant-jacoco-reuseReports/README.md
  82. +8 −8 projects/code-coverage/ut/ant/ut-ant-jacoco-reuseReports/build.xml
  83. +3 −3 projects/code-coverage/ut/ant/ut-ant-jacoco-runTests/README.md
  84. +4 −4 projects/code-coverage/ut/ant/ut-ant-jacoco-runTests/build.xml
  85. +2 −2 projects/code-coverage/ut/maven/ut-maven-cobertura-runTests/README.md
  86. +2 −2 projects/code-coverage/ut/maven/ut-maven-cobertura-runTests/pom.xml
  87. +3 −3 projects/code-coverage/ut/maven/ut-maven-emma-reuseReports/README.md
  88. +3 −3 projects/code-coverage/ut/maven/ut-maven-emma-runTests/README.md
  89. +2 −2 projects/code-coverage/ut/maven/ut-maven-emma-runTests/pom.xml
  90. +2 −2 projects/code-coverage/ut/maven/ut-maven-jacoco-reuseReports/README.md
  91. +4 −4 projects/code-coverage/ut/maven/ut-maven-jacoco-reuseReports/pom.xml
  92. +4 −4 projects/code-coverage/ut/maven/ut-maven-jacoco-runTests/README.md
  93. +4 −4 projects/code-coverage/ut/sonar-runner/ut-sonarRunner-jacoco-reuseReports/README.md
  94. +5 −5 projects/code-coverage/ut/sonar-runner/ut-sonarRunner-jacoco-reuseReports/sonar-project.properties
  95. +5 −5 projects/languages/abap/README.md
  96. +1 −1  projects/languages/abap/sonar-project.properties
  97. +5 −5 projects/languages/cobol/README.md
  98. +1 −1  projects/languages/cobol/sonar-project.properties
  99. +5 −5 projects/languages/cpp/cpp-sonar-runner-cppunit-gcov/README.md
  100. +1 −1  projects/languages/cpp/cpp-sonar-runner-cppunit-gcov/sonar-project.properties
  101. +5 −5 projects/languages/cpp/cpp-sonar-runner/README.md
  102. +1 −1  projects/languages/cpp/cpp-sonar-runner/sonar-project.properties
  103. +6 −6 projects/languages/csharp/README.md
  104. +5 −5 projects/languages/delphi/delphi-sonar-runner/README.md
  105. +1 −1  projects/languages/delphi/delphi-sonar-runner/sonar-project.properties
  106. +3 −3 projects/languages/drools/drools-maven/README.md
  107. +5 −5 projects/languages/drools/drools-sonar-runner/README.md
  108. +1 −1  projects/languages/drools/drools-sonar-runner/sonar-project.properties
  109. +5 −5 projects/languages/erlang/README.md
  110. +1 −1  projects/languages/erlang/sonar-project.properties
  111. +5 −5 projects/languages/flex/flex-sonar-runner/README.md
  112. +1 −1  projects/languages/flex/flex-sonar-runner/sonar-project.properties
  113. +3 −3 projects/languages/groovy/groovy-maven/README.md
  114. +5 −5 projects/languages/groovy/groovy-sonar-runner/README.md
  115. +1 −1  projects/languages/groovy/groovy-sonar-runner/sonar-project.properties
  116. +0 −16 projects/languages/java/ant/Prior to Sonar Ant Task 2.0/java-ant-simple/README.md
  117. +0 −41 projects/languages/java/ant/Prior to Sonar Ant Task 2.0/java-ant-simple/build.xml
  118. +0 −11 projects/languages/java/ant/Prior to Sonar Ant Task 2.0/java-ant-simple/src/One.java
  119. +0 −2  projects/languages/java/ant/README.md
  120. +3 −3 projects/languages/java/ant/java-ant-simple/README.md
  121. +2 −2 projects/languages/java/gradle/java-gradle-simple/README.md
  122. +2 −2 projects/languages/java/maven/java-maven-simple/README.md
  123. +0 −12 projects/languages/java/sonar-runner/Prior to Sonar Runner 2.0/java-sonar-runner-simple/README.md
  124. BIN  ...nguages/java/sonar-runner/Prior to Sonar Runner 2.0/java-sonar-runner-simple/build/classes/Helloworld.class
  125. BIN  projects/languages/java/sonar-runner/Prior to Sonar Runner 2.0/java-sonar-runner-simple/lib/deprecated.jar
  126. +0 −22 ...cts/languages/java/sonar-runner/Prior to Sonar Runner 2.0/java-sonar-runner-simple/sonar-project.properties
  127. +0 −13 projects/languages/java/sonar-runner/Prior to Sonar Runner 2.0/java-sonar-runner-simple/src/Helloworld.java
  128. +0 −9 projects/languages/java/sonar-runner/Prior to Sonar Runner 2.0/java-sonar-runner-simple/test/MyTest.java
  129. +0 −2  projects/languages/java/sonar-runner/README.md
  130. +3 −3 projects/languages/java/sonar-runner/java-sonar-runner-simple/README.md
  131. +1 −1  projects/languages/java/sonar-runner/java-sonar-runner-simple/sonar-project.properties
  132. +5 −5 projects/languages/javascript/javascript-sonar-runner-JsTestDriver/README.md
  133. +1 −1  projects/languages/javascript/javascript-sonar-runner-JsTestDriver/sonar-project.properties
  134. +5 −5 projects/languages/javascript/javascript-sonar-runner/README.md
  135. +1 −1  projects/languages/javascript/javascript-sonar-runner/sonar-project.properties
  136. +6 −6 projects/languages/multi-language/multi-language-dotnet/README.md
  137. +1 −1  projects/languages/multi-language/multi-language-dotnet/sonar-project.properties
  138. +4 −4 projects/languages/multi-language/multi-language-java-javascript-ant/README.md
  139. +5 −5 projects/languages/multi-language/multi-language-java-javascript-ant/build.xml
  140. +3 −3 projects/languages/multi-language/multi-language-java-javascript-maven/README.md
  141. +4 −4 projects/languages/multi-language/multi-language-java-javascript-sonar-runner/README.md
  142. +1 −1  projects/languages/multi-language/multi-language-java-javascript-sonar-runner/sonar-project.properties
  143. +5 −5 projects/languages/multi-language/multi-language-source-files-in-same-directory/README.md
  144. +5 −5 projects/languages/natural/README.md
  145. +1 −1  projects/languages/natural/sonar-project.properties
  146. +6 −6 projects/languages/pacbase/README.md
  147. +1 −1  projects/languages/pacbase/sonar-project.properties
  148. +5 −5 projects/languages/php/php-sonar-runner-unit-tests/README.md
  149. +1 −1  projects/languages/php/php-sonar-runner-unit-tests/sonar-project.properties
  150. +5 −5 projects/languages/php/php-sonar-runner/README.md
  151. +1 −1  projects/languages/php/php-sonar-runner/sonar-project.properties
  152. +5 −5 projects/languages/pli/README.md
  153. +4 −4 projects/languages/plsql/plsql-oracle-forms/README.md
  154. +5 −5 projects/languages/plsql/plsql-sonar-runner/README.md
  155. +1 −1  projects/languages/plsql/plsql-sonar-runner/sonar-project.properties
  156. +5 −5 projects/languages/python/python-sonar-runner/README.md
  157. +1 −1  projects/languages/python/python-sonar-runner/sonar-project.properties
  158. +4 −4 projects/languages/vb6/README.md
  159. +1 −1  projects/languages/vb6/sonar-project.properties
  160. +5 −5 projects/languages/vbnet/vbnet-sonar-runner/README.md
  161. +1 −1  projects/languages/vbnet/vbnet-sonar-runner/sonar-project.properties
  162. +5 −5 projects/languages/web/web-sonar-runner/README.md
  163. +1 −1  projects/languages/web/web-sonar-runner/sonar-project.properties
  164. +5 −5 projects/languages/xml/xml-sonar-runner-custom-schema/README.md
  165. +1 −1  projects/languages/xml/xml-sonar-runner-custom-schema/sonar-project.properties
  166. +5 −5 projects/languages/xml/xml-sonar-runner/README.md
  167. +1 −1  projects/languages/xml/xml-sonar-runner/sonar-project.properties
  168. +1 −1  projects/multi-module/ant/README.md
  169. +3 −3 projects/multi-module/ant/java-ant-modules-different-structures/README.md
  170. +5 −5 projects/multi-module/ant/java-ant-modules-different-structures/build.xml
  171. +3 −3 projects/multi-module/ant/java-ant-modules-same-structure/README.md
  172. +5 −5 projects/multi-module/ant/java-ant-modules-same-structure/build.xml
  173. +2 −2 projects/multi-module/gradle/java-gradle-modules/README.md
  174. +1 −1  projects/multi-module/sonar-runner/README.md
  175. +4 −4 projects/multi-module/sonar-runner/java-sonar-runner-modules-different-structures/README.md
  176. +1 −1  projects/multi-module/sonar-runner/java-sonar-runner-modules-different-structures/sonar-project.properties
  177. +4 −4 projects/multi-module/sonar-runner/java-sonar-runner-modules-own-configuration-file/README.md
  178. +1 −1  projects/multi-module/sonar-runner/java-sonar-runner-modules-own-configuration-file/sonar-project.properties
  179. +4 −4 projects/multi-module/sonar-runner/java-sonar-runner-modules-same-structure/README.md
  180. +1 −1  projects/multi-module/sonar-runner/java-sonar-runner-modules-same-structure/sonar-project.properties
  181. +2 −3 projects/tycho/README.md
  182. +3 −3 ws/manual-measure-ws/README.md
View
4 plugins/sonar-checkstyle-extension-plugin/README.md
@@ -4,6 +4,6 @@ Usage
mvn clean install
-* Copy the plugin into SONAR_HOME/extensions/plugin
-* Restart your Sonar server
+* Copy the plugin into SONARQUBE_HOME/extensions/plugin
+* Restart your SonarQube server
* The custom Checkstyle rules are now available
View
4 plugins/sonar-pmd-extension-plugin/README.md
@@ -4,6 +4,6 @@ Usage
mvn clean install
-* Copy the plugin into SONAR_HOME/extensions/plugin
-* Restart your Sonar server
+* Copy the plugin into SONARQUBE_HOME/extensions/plugin
+* Restart your SonarQube server
* The custom PMD rules are now available
View
2  plugins/sonar-reference-plugin/pom.xml
@@ -8,7 +8,7 @@
<version>0.1-SNAPSHOT</version>
<name>Sonar Examples :: Reference Plugin</name>
- <description>plugin description will be displayed in Sonar</description>
+ <description>Plugin description will be displayed in SonarQube</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
View
6 projects/android/README.md
@@ -3,8 +3,8 @@ This example demonstrates how to analyse project for Android.
Prerequisites
=============
-* [Sonar](http://www.sonarsource.org/downloads/) 3.0 or higher
-* [Sonar Emma Plugin](http://docs.codehaus.org/display/SONAR/Emma+Plugin) 1.3 or higher
+* [SonarQube](http://www.sonarsource.org/downloads/) 3.0 or higher
+* [SonarQube Emma Plugin](http://docs.codehaus.org/display/SONAR/Emma+Plugin) 1.3 or higher
* Maven 3.0.3 or higher
* [Android SDK](http://developer.android.com/sdk/index.html)
@@ -15,6 +15,6 @@ Execution
mvn clean install -Pemma -Dandroid.sdk.path=...
-2. Analyse by Sonar :
+2. Analyze with SonarQube:
mvn sonar:sonar
View
1  projects/android/pom.xml
@@ -17,7 +17,6 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <!-- Sonar -->
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.core.codeCoveragePlugin>emma</sonar.core.codeCoveragePlugin>
<sonar.emma.reportPath>target/emma</sonar.emma.reportPath>
View
17 projects/code-coverage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-multimodule-maven-jacoco/README.md
@@ -1,17 +0,0 @@
-This example demonstrates how to collect code coverage by integration tests, tests are located in a separate Java Maven module.
-Sonar aggregates code coverage by unit tests and integration tersts to compute an overall code coverage (this feature requires Sonar 3.3).
-
-Prerequisites
-=============
-* [Sonar](http://www.sonarsource.org/downloads/) 2.12 or higher
-* Maven 2.2.1 or higher
-
-Usage
-=====
-* Build the project and execute all the tests:
-
- mvn clean install
-
-* Analyze the project with Sonar using Maven:
-
- mvn sonar:sonar
View
46 .../code-coverage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-multimodule-maven-jacoco/app-it/pom.xml
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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.example.app-example</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>app-it</artifactId>
-
- <name>JaCoCo Examples :: app-example :: app-it</name>
-
- <dependencies>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>app</artifactId>
- <version>${project.version}</version>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.jacoco</groupId>
- <artifactId>jacoco-maven-plugin</artifactId>
- <configuration>
- <!-- The destination file for the code coverage report has to be set to the same value
- in the parent pom and in each module pom. Then JaCoCo will add up information in
- the same report, so that, it will give the cross-module code coverage. -->
- <destFile>${project.basedir}/../target/jacoco-it.exec</destFile>
- </configuration>
- <executions>
- <execution>
- <id>post-test</id>
- <configuration>
- <skip>true</skip>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
-</project>
View
12 ... 3.4/combined-ut-it-multimodule-maven-jacoco/app-it/src/test/java/example/HelloWorldIntegrationTest.java
@@ -1,12 +0,0 @@
-package example;
-
-import org.junit.Test;
-
-public class HelloWorldIntegrationTest {
-
- @Test
- public void test() {
- new HelloWorld().coveredByIntegrationTest();
- }
-
-}
View
15 ...cts/code-coverage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-multimodule-maven-jacoco/app/pom.xml
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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.example.app-example</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>app</artifactId>
-
- <name>JaCoCo Examples :: app-example :: app</name>
-
-</project>
View
20 ...it/_Prior to Sonar 3.4/combined-ut-it-multimodule-maven-jacoco/app/src/main/java/example/HelloWorld.java
@@ -1,20 +0,0 @@
-package example;
-
-public class HelloWorld {
-
- public void coveredByUnitTest() {
- System.out.println("coveredByUnitTest1");
- System.out.println("coveredByUnitTest2");
- }
-
- public void coveredByIntegrationTest() {
- System.out.println("coveredByIntegrationTest1");
- System.out.println("coveredByIntegrationTest2");
- System.out.println("coveredByIntegrationTest3");
- }
-
- public void notCovered() {
- System.out.println("notCovered");
- }
-
-}
View
12 ...r to Sonar 3.4/combined-ut-it-multimodule-maven-jacoco/app/src/test/java/example/HelloWorldUnitTest.java
@@ -1,12 +0,0 @@
-package example;
-
-import org.junit.Test;
-
-public class HelloWorldUnitTest {
-
- @Test
- public void test() {
- new HelloWorld().coveredByUnitTest();
- }
-
-}
View
85 projects/code-coverage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-multimodule-maven-jacoco/pom.xml
@@ -1,85 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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>
-
- <groupId>org.example.app-example</groupId>
- <artifactId>parent</artifactId>
- <packaging>pom</packaging>
- <version>1.0-SNAPSHOT</version>
-
- <name>JaCoCo Examples :: app-example :: parent</name>
-
- <modules>
- <module>app</module>
- <module>app-it</module>
- </modules>
-
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
-
- <!-- Sonar -->
- <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
- <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
- <!-- The destination file for the code coverage report has to be set to the same value
- in the parent pom and in each module pom. Then JaCoCo will add up information in
- the same report, so that, it will give the cross-module code coverage. -->
- <sonar.jacoco.itReportPath>${project.basedir}/../target/jacoco-it.exec</sonar.jacoco.itReportPath>
- <sonar.language>java</sonar.language>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.jacoco</groupId>
- <artifactId>jacoco-maven-plugin</artifactId>
- <version>0.5.3.201107060350</version>
- </plugin>
- </plugins>
- </pluginManagement>
-
- <plugins>
- <plugin>
- <groupId>org.jacoco</groupId>
- <artifactId>jacoco-maven-plugin</artifactId>
- <configuration>
- <includes>example.*</includes>
- </configuration>
- <executions>
- <execution>
- <id>pre-test</id>
- <goals>
- <goal>prepare-agent</goal>
- </goals>
- </execution>
- <execution>
- <id>post-test</id>
- <phase>test</phase>
- <goals>
- <goal>report</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
View
13 projects/code-coverage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-sonar-runner-jacoco/README.md
@@ -1,13 +0,0 @@
-This example demonstrates how to collect code coverage by unit tests and integration tests.
-Sonar aggregates these code coverages to compute an overall code coverage.
-
-Prerequisites
-=============
-* [Sonar](http://www.sonarsource.org/downloads/) 3.3 or higher
-* [Sonar Runner](http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Sonar+Runner) 2.0 or higher
-
-Usage
-=====
-* Analyze the project with Sonar Runner:
-
- sonar-runner
View
BIN  ...e/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-sonar-runner-jacoco/classes/example/HelloWorld.class
Binary file not shown
View
BIN  ...rage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-sonar-runner-jacoco/reports/jacoco/jacoco-it.exec
Binary file not shown
View
BIN  ...rage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-sonar-runner-jacoco/reports/jacoco/jacoco-ut.exec
Binary file not shown
View
63 ..._Prior to Sonar 3.4/combined-ut-it-sonar-runner-jacoco/reports/junit/TEST-example.HelloWorldUnitTest.xml
@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<testsuite failures="0" time="0.063" errors="0" skipped="0" tests="1" name="example.HelloWorldUnitTest">
- <properties>
- <property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
- <property name="sun.boot.library.path" value="C:\Program Files\Java\jdk1.6.0_27\jre\bin"/>
- <property name="java.vm.version" value="20.2-b06"/>
- <property name="java.vm.vendor" value="Sun Microsystems Inc."/>
- <property name="java.vendor.url" value="http://java.sun.com/"/>
- <property name="path.separator" value=";"/>
- <property name="guice.disable.misplaced.annotation.check" value="true"/>
- <property name="java.vm.name" value="Java HotSpot(TM) Client VM"/>
- <property name="file.encoding.pkg" value="sun.io"/>
- <property name="user.country" value="US"/>
- <property name="sun.java.launcher" value="SUN_STANDARD"/>
- <property name="sun.os.patch.level" value="Service Pack 1"/>
- <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
- <property name="user.dir" value="C:\git\sonar-examples\projects\code-coverage\ut\maven\ut-maven-multimodule-jacoco-runTests"/>
- <property name="java.runtime.version" value="1.6.0_27-b07"/>
- <property name="java.awt.graphicsenv" value="sun.awt.Win32GraphicsEnvironment"/>
- <property name="java.endorsed.dirs" value="C:\Program Files\Java\jdk1.6.0_27\jre\lib\endorsed"/>
- <property name="os.arch" value="x86"/>
- <property name="java.io.tmpdir" value="C:\Users\DAVID~1.RAC\AppData\Local\Temp\"/>
- <property name="line.separator" value="
-"/>
- <property name="java.vm.specification.vendor" value="Sun Microsystems Inc."/>
- <property name="user.variant" value=""/>
- <property name="os.name" value="Windows 7"/>
- <property name="classworlds.conf" value="C:\tools\apache-maven-3.0.4\bin\..\bin\m2.conf"/>
- <property name="sun.jnu.encoding" value="Cp1252"/>
- <property name="java.library.path" value="C:\Program Files\Java\jdk1.6.0_27\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files\Java\jdk1.6.0_27\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;c:\Program Files\Hewlett-Packard\Drive Encryption\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\Broadcom\Broadcom 802.11\Driver;C:\Program Files\SlikSvn\bin\;C:\Program Files\Bitvise Tunnelier;C:\Program Files\Git\cmd;C:\tools\sonar-runner-1.5-SNAPSHOT\bin;C:\Program Files\TortoiseSVN\bin;C:\tools\sonar-autocontrol-2.2\bin;C:\tools\apache-ant-1.8.4\bin;C:\Program Files\Microsoft Windows Performance Toolkit\;C:\Program Files\Cppcheck\;C:\tools\Python27;C:\tools\Python27\Scripts;C:\tools\apache-maven-3.0.4\bin;C:\tools\doxygen\bin;C:\tools\graphviz\bin;C:\tools\php;C:\Program Files\Gallio\bin;."/>
- <property name="java.specification.name" value="Java Platform API Specification"/>
- <property name="java.class.version" value="50.0"/>
- <property name="sun.management.compiler" value="HotSpot Client Compiler"/>
- <property name="os.version" value="6.1"/>
- <property name="user.home" value="C:\Users\david.racodon"/>
- <property name="user.timezone" value="Europe/Paris"/>
- <property name="java.awt.printerjob" value="sun.awt.windows.WPrinterJob"/>
- <property name="file.encoding" value="Cp1252"/>
- <property name="java.specification.version" value="1.6"/>
- <property name="user.name" value="david.racodon"/>
- <property name="java.class.path" value="C:\tools\apache-maven-3.0.4\bin\..\boot\plexus-classworlds-2.4.jar"/>
- <property name="java.vm.specification.version" value="1.0"/>
- <property name="sun.arch.data.model" value="32"/>
- <property name="java.home" value="C:\Program Files\Java\jdk1.6.0_27\jre"/>
- <property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher clean install"/>
- <property name="java.specification.vendor" value="Sun Microsystems Inc."/>
- <property name="user.language" value="en"/>
- <property name="awt.toolkit" value="sun.awt.windows.WToolkit"/>
- <property name="java.vm.info" value="mixed mode, sharing"/>
- <property name="java.version" value="1.6.0_27"/>
- <property name="java.ext.dirs" value="C:\Program Files\Java\jdk1.6.0_27\jre\lib\ext;C:\windows\Sun\Java\lib\ext"/>
- <property name="sun.boot.class.path" value="C:\Program Files\Java\jdk1.6.0_27\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\modules\jdk.boot.jar;C:\Program Files\Java\jdk1.6.0_27\jre\classes"/>
- <property name="java.vendor" value="Sun Microsystems Inc."/>
- <property name="maven.home" value="C:\tools\apache-maven-3.0.4\bin\.."/>
- <property name="file.separator" value="\"/>
- <property name="java.vendor.url.bug" value="http://java.sun.com/cgi-bin/bugreport.cgi"/>
- <property name="sun.cpu.endian" value="little"/>
- <property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
- <property name="sun.desktop" value="windows"/>
- <property name="sun.cpu.isalist" value=""/>
- </properties>
- <testcase time="0.011" classname="example.HelloWorldUnitTest" name="test"/>
-</testsuite>
View
4 ...t-it/_Prior to Sonar 3.4/combined-ut-it-sonar-runner-jacoco/reports/junit/example.HelloWorldUnitTest.txt
@@ -1,4 +0,0 @@
--------------------------------------------------------------------------------
-Test set: example.HelloWorldUnitTest
--------------------------------------------------------------------------------
-Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.065 sec
View
25 ...-coverage/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-sonar-runner-jacoco/sonar-project.properties
@@ -1,25 +0,0 @@
-sonar.projectKey=org.codehaus.sonar:example-combining-ut-and-it-coverage
-sonar.projectName=Java sample project combining UT and IT coverage
-sonar.projectVersion=1.0
-
-sonar.sources=sources
-sonar.binaries=classes
-sonar.language=java
-
-#Tells Sonar to reuse existing reports for unit tests execution and coverage reports
-sonar.dynamicAnalysis=reuseReports
-
-#Tells Sonar where the unit tests execution reports are
-sonar.surefire.reportsPath=reports/junit
-
-#Tells Sonar that the code coverage tool by unit tests is JaCoCo
-sonar.core.codeCoveragePlugin=jacoco
-
-#Tells Sonar where the unit tests code coverage report is
-sonar.jacoco.reportPath=reports/jacoco/jacoco-ut.exec
-
-#Tells Sonar where the integration tests code coverage report is
-sonar.jacoco.itReportPath=reports/jacoco/jacoco-it.exec
-
-# Encoding of the source files
-sonar.sourceEncoding=UTF-8
View
20 ...ge/combined ut-it/_Prior to Sonar 3.4/combined-ut-it-sonar-runner-jacoco/sources/example/HelloWorld.java
@@ -1,20 +0,0 @@
-package example;
-
-public class HelloWorld {
-
- public void coveredByUnitTest() {
- System.out.println("coveredByUnitTest1");
- System.out.println("coveredByUnitTest2");
- }
-
- public void coveredByIntegrationTest() {
- System.out.println("coveredByIntegrationTest1");
- System.out.println("coveredByIntegrationTest2");
- System.out.println("coveredByIntegrationTest3");
- }
-
- public void notCovered() {
- System.out.println("notCovered");
- }
-
-}
View
6 projects/code-coverage/combined ut-it/combined-ut-it-multimodule-maven-jacoco/README.md
@@ -1,9 +1,9 @@
This example demonstrates how to collect code coverage by integration tests, tests are located in a separate Java Maven module.
-Sonar aggregates code coverage by unit tests and integration tersts to compute an overall code coverage (this feature requires Sonar 3.3).
+SonarQube aggregates code coverage by unit tests and integration tersts to compute an overall code coverage (this feature requires SonarQube 3.3).
Prerequisites
=============
-* [Sonar](http://www.sonarsource.org/downloads/) 3.4 or higher
+* [SonarQube](http://www.sonarsource.org/downloads/) 3.4 or higher
* Maven 2.2.1 or higher
Usage
@@ -12,6 +12,6 @@ Usage
mvn clean install
-* Analyze the project with Sonar using Maven:
+* Analyze the project with SonarQube using Maven:
mvn sonar:sonar
View
8 projects/code-coverage/combined ut-it/combined-ut-it-sonar-runner-jacoco/README.md
@@ -1,13 +1,13 @@
This example demonstrates how to collect code coverage by unit tests and integration tests.
-Sonar aggregates these code coverages to compute an overall code coverage.
+SonarQube aggregates these code coverage data to compute an overall code coverage.
Prerequisites
=============
-* [Sonar](http://www.sonarsource.org/downloads/) 3.4 or higher
-* [Sonar Runner](http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Sonar+Runner) 2.0 or higher
+* [SonarQube](http://www.sonarsource.org/downloads/) 3.4 or higher
+* [SonarQube Runner](http://docs.codehaus.org/x/N4KxDQ) 2.0 or higher
Usage
=====
-* Analyze the project with Sonar Runner:
+* Analyze the project with SonarQube Runner:
sonar-runner
View
10 projects/code-coverage/combined ut-it/combined-ut-it-sonar-runner-jacoco/sonar-project.properties
@@ -6,19 +6,19 @@ sonar.sources=sources
sonar.binaries=classes
sonar.language=java
-#Tells Sonar to reuse existing reports for unit tests execution and coverage reports
+#Tells SonarQube to reuse existing reports for unit tests execution and coverage reports
sonar.dynamicAnalysis=reuseReports
-#Tells Sonar where the unit tests execution reports are
+#Tells SonarQube where the unit tests execution reports are
sonar.surefire.reportsPath=reports/junit
-#Tells Sonar that the code coverage tool by unit tests is JaCoCo
+#Tells SonarQube that the code coverage tool by unit tests is JaCoCo
sonar.java.coveragePlugin=jacoco
-#Tells Sonar where the unit tests code coverage report is
+#Tells SonarQube where the unit tests code coverage report is
sonar.jacoco.reportPath=reports/jacoco/jacoco-ut.exec
-#Tells Sonar where the integration tests code coverage report is
+#Tells SonarQube where the integration tests code coverage report is
sonar.jacoco.itReportPath=reports/jacoco/jacoco-it.exec
# Encoding of the source files
View
6 projects/code-coverage/it/ant/it-jacoco-ant/README.md
@@ -2,13 +2,13 @@ This example demonstrates how to add information on integration tests coverage f
Prerequisites
=============
-* [Sonar](http://www.sonarsource.org/downloads/) 3.0 or higher
-* [Sonar Ant Task](http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Ant+Task) 2.0 or higher
+* [SonarQube](http://www.sonarsource.org/downloads/) 3.0 or higher
+* [SonarQube Ant Task](http://docs.codehaus.org/x/QYKxDQ) 2.0 or higher
* [Ant](http://ant.apache.org/) 1.7.1 or higher
Usage
=====
-* Set the path to the Sonar Ant Task in the build.xml file
+* Set the path to the SonarQube Ant Task in the build.xml file
* Set the sonar.jdbc.* properties in the build.xml file
* Run the following command:
View
4 projects/code-coverage/it/maven/it-jacoco-maven/README.md
@@ -2,7 +2,7 @@ This example demonstrates how to add information on integration tests coverage f
Prerequisites
=============
-* [Sonar](http://www.sonarsource.org/downloads/) 2.12 or higher
+* [SonarQube](http://www.sonarsource.org/downloads/) 2.12 or higher
* Maven 2.2.1 or higher
Usage
@@ -11,7 +11,7 @@ Usage
mvn clean install
-* Analyze the project with Sonar using Maven:
+* Analyze the project with SonarQube using Maven:
mvn sonar:sonar
View
2  projects/code-coverage/it/maven/it-jacoco-maven/pom.xml
@@ -10,7 +10,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<sonar.language>java</sonar.language>
- <!-- Feed Sonar with the JaCoCo integration tests coverage report (that you have previously generated) -->
+ <!-- Feed SonarQube with the JaCoCo integration tests coverage report (that you have previously generated) -->
<sonar.jacoco.itReportPath>${project.basedir}/reports/jacoco.exec</sonar.jacoco.itReportPath>
</properties>
View
8 projects/code-coverage/it/sonar-runner/it-jacoco-sonar-runner/README.md
@@ -1,12 +1,12 @@
-This example demonstrates how to add information on integration tests coverage for a Java project using JaCoCo and Sonar Runner.
+This example demonstrates how to add information on integration tests coverage for a Java project using JaCoCo and SonarQube Runner.
Prerequisites
=============
-* [Sonar](http://www.sonarsource.org/downloads/) 3.0 or higher
-* [Sonar Runner](http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Sonar+Runner) 2.0 or higher
+* [SonarQube](http://www.sonarsource.org/downloads/) 3.0 or higher
+* [SonarQube Runner](http://docs.codehaus.org/x/N4KxDQ) 2.0 or higher
Usage
=====
-* Analyze it with Sonar using the Sonar Runner:
+* Analyze it with SonarQube using the SonarQube Runner:
sonar-runner
View
2  projects/code-coverage/it/sonar-runner/it-jacoco-sonar-runner/sonar-project.properties
@@ -1,5 +1,5 @@
sonar.projectKey=org.codehaus.sonar:example-it-jacoco-sonar-runner
-sonar.projectName=IT coverage with JaCoCo and Sonar Runner
+sonar.projectName=IT coverage with JaCoCo and SonarQube Runner
sonar.projectVersion=1.0
sonar.sources=src
View
17 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/README.md
@@ -1,17 +0,0 @@
-This example demonstrates how to analyze a multi-module Java project with Ant and Jacoco, running tests.
-
-Prerequisites
-=============
-* [Sonar](http://www.sonarsource.org/downloads/) 3.0 or higher
-* [Sonar Ant Task](http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Ant+Task) 2.0 or higher
-* [JaCoCo Ant Task](http://www.eclemma.org/jacoco/) 0.5.6 or higher
-* [Ant](http://ant.apache.org/) 1.7.1 or higher
-
-Usage
-=====
-* Set the path to the Sonar Ant Task in the parent build.xml file
-* Set the path to the JaCoCo Ant Task in the build.xml file
-* Set the Sonar properties in the parent build.xml file
-* Run the following command:
-
- ant all
View
71 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/build.xml
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="UT coverage with Ant and JaCoCo running tests :: Parent" default="all" basedir="." xmlns:sonar="antlib:org.sonar.ant">
-
- <!-- ========= Define the main properties of this project ========= -->
- <property name="src.dir" value="src" />
- <property name="test.dir" value="test" />
- <property name="build.dir" value="target" />
- <property name="classes.dir" value="${build.dir}/classes" />
- <property name="reports.dir" value="${build.dir}/reports" />
- <property name="reports.junit.xml.dir" value="${reports.dir}/junit" />
-
- <!-- Define the Sonar properties -->
- <property name="sonar.projectKey" value="org.codehaus.sonar:example-ut-ant-jacoco-modules-runTests" />
- <property name="sonar.projectName" value="UT coverage with Ant and JaCoCo running tests :: Parent" />
- <property name="sonar.projectVersion" value="1.0" />
- <property name="sonar.language" value="java" />
- <property name="sonar.sources" value="${src.dir}" />
- <property name="sonar.tests" value="${test.dir}" />
- <property name="sonar.binaries" value="${classes.dir}" />
- <property name="sonar.surefire.reportsPath" value="${reports.junit.xml.dir}" />
- <property name="sonar.modules" value="module1,module2"/>
- <property name="sonar.sourceEncoding" value="UTF-8" />
-
- <!-- Override some properties at module level -->
- <property name="module1.sonar.projectName" value="Module One" />
- <property name="module2.sonar.projectName" value="Module Two" />
-
- <!-- The following properties are required to use JaCoCo: -->
- <property name="sonar.dynamicAnalysis" value="reuseReports" />
- <property name="sonar.core.codeCoveragePlugin" value="jacoco" />
- <property name="sonar.jacoco.reportPath" value="target/jacoco.exec" />
-
- <!-- Add your basic Sonar configuration below: sonar.jdbc.url, sonar.jdbc.username, etc. properties -->
- <!--
- <property name="sonar.jdbc.url" value="jdbc:..." />
- <property name="sonar.jdbc.username" value="..." />
- <property name="sonar.jdbc.password" value="..." />
- -->
-
- <!-- ========= Define "regular" targets: clean, compile, test, ... ========= -->
- <target name="clean">
- <delete dir=".sonar"/>
- <ant dir="module1" target="clean"/>
- <ant dir="module2" target="clean"/>
- </target>
-
- <target name="compile">
- <ant dir="module1" target="compile"/>
- <ant dir="module2" target="compile"/>
- </target>
-
- <target name="test" depends="compile">
- <ant dir="module1" target="test"/>
- <ant dir="module2" target="test"/>
- </target>
-
- <!-- ========= Define Sonar target ========= -->
- <target name="sonar" depends="compile">
- <taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml">
- <!-- Update the following line, or put the "sonar-ant-task-*.jar" file in your "$HOME/.ant/lib" folder -->
- <classpath path="path/to/sonar/ant/task/lib/sonar-ant-task-*.jar" />
- </taskdef>
-
- <!-- Execute Sonar -->
- <sonar:sonar />
- </target>
-
- <!-- ========= The main target "all" ========= -->
- <target name="all" depends="clean,compile,test,sonar" />
-
-</project>
View
BIN  projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/lib/junit-4.10.jar
Binary file not shown
View
66 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/module1/build.xml
@@ -1,66 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="UT coverage with Ant and JaCoCo running tests :: Module1" default="all" basedir="." xmlns:sonar="antlib:org.sonar.ant">
-
- <!-- ========= Define the main properties of this project ========= -->
- <property name="src.dir" value="src" />
- <property name="test.dir" value="test" />
- <property name="lib.junit.dir" value="../lib" />
- <property name="build.dir" value="target" />
- <property name="classes.dir" value="${build.dir}/classes" />
- <property name="reports.dir" value="${build.dir}/reports" />
- <property name="reports.junit.xml.dir" value="${reports.dir}/junit" />
-
- <path id="classpath">
- <fileset dir="${lib.junit.dir}" includes="*.jar" />
- </path>
-
- <!-- ========= Define "regular" targets: clean, compile, test, ... ========= -->
- <target name="clean">
- <delete dir="${build.dir}" />
- <delete dir="${reports.dir}" />
- </target>
-
- <target name="init">
- <mkdir dir="${build.dir}" />
- <mkdir dir="${classes.dir}" />
- <mkdir dir="${reports.dir}" />
- <mkdir dir="${reports.junit.xml.dir}" />
- </target>
-
- <target name="compile" depends="init">
- <javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath" fork="true" debug="true" includeAntRuntime="false" />
- <javac srcdir="${test.dir}" destdir="${classes.dir}" classpathref="classpath" fork="true" debug="true" includeAntRuntime="false" />
- </target>
-
- <target name="test" depends="compile">
-
- <taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask">
- <classpath>
- <path refid="classpath"/>
- </classpath>
- </taskdef>
-
- <!-- Import the JaCoCo Ant Task -->
- <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
- <!-- Update the following line, or put the "jacocoant.jar" file in your "$HOME/.ant/lib" folder -->
- <classpath path="path/to/jacoco/ant/task/lib/jacocoant.jar" />
- </taskdef>
-
- <!-- Run your unit tests, adding the JaCoCo agent -->
- <jacoco:coverage destfile="target/jacoco.exec" xmlns:jacoco="antlib:org.jacoco.ant">
- <junit fork="yes" dir="${basedir}" failureProperty="test.failed">
- <classpath location="${classes.dir}" />
- <classpath refid="classpath" />
-
- <formatter type="xml" />
- <batchtest todir="${reports.junit.xml.dir}">
- <fileset dir="${test.dir}">
- <include name="**/*Test.java" />
- </fileset>
- </batchtest>
- </junit>
- </jacoco:coverage>
-
- </target>
-
-</project>
View
11 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/module1/src/One.java
@@ -1,11 +0,0 @@
-public class One {
- String message = "foo";
-
- public String foo() {
- return message;
- }
-
- public void uncoveredMethod() {
- System.out.println(foo());
- }
-}
View
11 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/module1/test/OneTest.java
@@ -1,11 +0,0 @@
-import static org.junit.Assert.assertEquals;
-import org.junit.Test;
-
-public class OneTest {
- @Test
- public void testFoo() throws Exception {
- One one = new One();
- assertEquals("foo", one.foo());
- }
-
-}
View
66 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/module2/build.xml
@@ -1,66 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="UT coverage with Ant and JaCoCo running tests :: Module2" default="all" basedir="." xmlns:sonar="antlib:org.sonar.ant">
-
- <!-- ========= Define the main properties of this project ========= -->
- <property name="src.dir" value="src" />
- <property name="test.dir" value="test" />
- <property name="lib.junit.dir" value="../lib" />
- <property name="build.dir" value="target" />
- <property name="classes.dir" value="${build.dir}/classes" />
- <property name="reports.dir" value="${build.dir}/reports" />
- <property name="reports.junit.xml.dir" value="${reports.dir}/junit" />
-
- <path id="classpath">
- <fileset dir="${lib.junit.dir}" includes="*.jar" />
- </path>
-
- <!-- ========= Define "regular" targets: clean, compile, test, ... ========= -->
- <target name="clean">
- <delete dir="${build.dir}" />
- <delete dir="${reports.dir}" />
- </target>
-
- <target name="init">
- <mkdir dir="${build.dir}" />
- <mkdir dir="${classes.dir}" />
- <mkdir dir="${reports.dir}" />
- <mkdir dir="${reports.junit.xml.dir}" />
- </target>
-
- <target name="compile" depends="init">
- <javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath" fork="true" debug="true" includeAntRuntime="false" />
- <javac srcdir="${test.dir}" destdir="${classes.dir}" classpathref="classpath" fork="true" debug="true" includeAntRuntime="false" />
- </target>
-
- <target name="test" depends="compile">
-
- <taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask">
- <classpath>
- <path refid="classpath"/>
- </classpath>
- </taskdef>
-
- <!-- Import the JaCoCo Ant Task -->
- <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
- <!-- Update the following line, or put the "jacocoant.jar" file in your "$HOME/.ant/lib" folder -->
- <classpath path="path/to/jacoco/ant/task/lib/jacocoant.jar" />
- </taskdef>
-
- <!-- Run your unit tests, adding the JaCoCo agent -->
- <jacoco:coverage destfile="target/jacoco.exec" xmlns:jacoco="antlib:org.jacoco.ant">
- <junit fork="yes" dir="${basedir}" failureProperty="test.failed">
- <classpath location="${classes.dir}" />
- <classpath refid="classpath" />
-
- <formatter type="xml" />
- <batchtest todir="${reports.junit.xml.dir}">
- <fileset dir="${test.dir}">
- <include name="**/*Test.java" />
- </fileset>
- </batchtest>
- </junit>
- </jacoco:coverage>
-
- </target>
-
-</project>
View
16 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/module2/src/Two.java
@@ -1,16 +0,0 @@
-public class Two {
- String message = "foo";
-
- public String foo() {
- return message;
- }
-
- public void uncoveredMethod() {
- System.out.println(foo());
- }
-
- public void uncoveredMethod2() {
- System.out.println(foo());
- }
-
-}
View
11 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-modules-runTests/module2/test/TwoTest.java
@@ -1,11 +0,0 @@
-import static org.junit.Assert.assertEquals;
-import org.junit.Test;
-
-public class TwoTest {
- @Test
- public void testFoo() throws Exception {
- Two two = new Two();
- assertEquals("foo", two.foo());
- }
-
-}
View
16 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-reuseReports/README.md
@@ -1,16 +0,0 @@
-This example demonstrates how to analyze a Java project with Ant reusing existing JUnit and JaCoCo reports.
-
-Prerequisites
-=============
-* [Sonar](http://www.sonarsource.org/downloads/) 3.0 or higher
-* [Sonar Ant Task](http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Ant+Task) 2.0 or higher
-* [Ant](http://ant.apache.org/) 1.7.1 or higher
-
-Usage
-=====
-* Set the path to the Ant Task in the build.xml file
-* Set the sonar.jdbc.* properties in the build.xml file
-* Run the following command:
-
- ant all
-
View
69 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-reuseReports/build.xml
@@ -1,69 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="UT coverage with Ant reusing JUnit and JaCoCo reports" default="all" basedir="." xmlns:sonar="antlib:org.sonar.ant">
-
- <!-- ========= Define the main properties of this project ========= -->
- <property name="src.dir" value="src" />
- <property name="build.dir" value="target" />
- <property name="classes.dir" value="${build.dir}/classes" />
- <property name="reports.dir" value="reports" />
- <property name="reports.junit" value="${reports.dir}/junit" />
- <property name="reports.jacoco" value="${reports.dir}/coverage/jacoco.exec" />
-
- <!-- Define the Sonar properties -->
- <property name="sonar.projectKey" value="org.codehaus.sonar:example-ut-ant-jacoco-reuseReports" />
- <property name="sonar.projectName" value="UT coverage with Ant reusing JUnit and JaCoCo reports" />
- <property name="sonar.projectVersion" value="1.0" />
- <property name="sonar.language" value="java" />
- <property name="sonar.sources" value="${src.dir}" />
- <property name="sonar.binaries" value="${classes.dir}" />
- <property name="sonar.sourceEncoding" value="UTF-8" />
-
- <!-- Tells Sonar to reuse existing reports for unit tests execution and coverage reports -->
- <property name="sonar.dynamicAnalysis" value="reuseReports" />
-
- <!-- Tells Sonar where the unit tests execution reports are -->
- <property name="sonar.surefire.reportsPath" value="${reports.junit}" />
-
- <!-- Tells Sonar that the code coverage tool by unit tests is JaCoCo -->
- <property name="sonar.core.codeCoveragePlugin" value="jacoco" />
-
- <!-- Tells Sonar where the unit tests code coverage report is -->
- <property name="sonar.jacoco.reportPath" value="${reports.jacoco}" />
-
- <!-- Add your basic Sonar configuration below: sonar.jdbc.url, sonar.jdbc.username, etc. properties -->
- <!--
- <property name="sonar.jdbc.url" value="jdbc:..." />
- <property name="sonar.jdbc.username" value="..." />
- <property name="sonar.jdbc.password" value="..." />
- -->
-
- <!-- ========= Define "regular" targets: clean, compile, ... ========= -->
- <target name="clean">
- <delete dir=".sonar" />
- <delete dir="${build.dir}" />
- </target>
-
- <target name="init">
- <mkdir dir="${build.dir}" />
- <mkdir dir="${classes.dir}" />
- </target>
-
- <target name="compile" depends="init">
- <javac srcdir="${src.dir}" destdir="${classes.dir}" fork="true" debug="true" includeAntRuntime="false" />
- </target>
-
- <!-- ========= Define Sonar target ========= -->
- <target name="sonar" depends="compile">
- <taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml">
- <!-- Update the following line, or put the "sonar-ant-task-*.jar" file in your "$HOME/.ant/lib" folder -->
- <classpath path="path/to/sonar/ant/task/lib/sonar-ant-task-*.jar" />
- </taskdef>
-
- <!-- Execute Sonar -->
- <sonar:sonar />
- </target>
-
- <!-- ========= The main target "all" ========= -->
- <target name="all" depends="clean,compile,sonar" />
-
-</project>
View
BIN  projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-reuseReports/reports/coverage/jacoco.exec
Binary file not shown
View
91 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-reuseReports/reports/junit/TEST-OneTest.xml
@@ -1,91 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<testsuite errors="0" failures="0" hostname="DAVID-PORTABLE" name="OneTest" tests="1" time="0.074" timestamp="2012-05-31T10:48:46">
- <properties>
- <property name="java.vendor" value="Sun Microsystems Inc." />
- <property name="sun.java.launcher" value="SUN_STANDARD" />
- <property name="ant.file.type.UT coverage with JaCoCo and Ant" value="file" />
- <property name="sun.management.compiler" value="HotSpot Client Compiler" />
- <property name="os.name" value="Windows 7" />
- <property name="sun.boot.class.path" value="C:\Program Files\Java\jdk1.6.0_27\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\modules\jdk.boot.jar;C:\Program Files\Java\jdk1.6.0_27\jre\classes" />
- <property name="sun.desktop" value="windows" />
- <property name="java.vm.specification.vendor" value="Sun Microsystems Inc." />
- <property name="ant.home" value="C:\tools\apache-ant-1.8.4" />
- <property name="java.runtime.version" value="1.6.0_27-b07" />
- <property name="sonar.core.codeCoveragePlugin" value="jacoco" />
- <property name="sonar.jdbc.password" value="dory" />
- <property name="user.name" value="david.racodon" />
- <property name="sonar.surefire.reportsPath" value="target/reports/junit" />
- <property name="build.dir" value="target" />
- <property name="user.language" value="en" />
- <property name="sonar.jacoco.antTargets" value="run-tests" />
- <property name="sun.boot.library.path" value="C:\Program Files\Java\jdk1.6.0_27\jre\bin" />
- <property name="reports.dir" value="target/reports" />
- <property name="ant.project.default-target" value="all" />
- <property name="ant.project.name" value="UT coverage with JaCoCo and Ant" />
- <property name="reports.junit.xml.dir" value="target/reports/junit" />
- <property name="java.version" value="1.6.0_27" />
- <property name="user.timezone" value="" />
- <property name="sun.arch.data.model" value="32" />
- <property name="java.endorsed.dirs" value="C:\Program Files\Java\jdk1.6.0_27\jre\lib\endorsed" />
- <property name="sonar.jdbc.username" value="dory" />
- <property name="sun.cpu.isalist" value="" />
- <property name="sun.jnu.encoding" value="Cp1252" />
- <property name="file.encoding.pkg" value="sun.io" />
- <property name="file.separator" value="\" />
- <property name="java.specification.name" value="Java Platform API Specification" />
- <property name="sonar.sources" value="src" />
- <property name="classes.dir" value="target/classes" />
- <property name="java.class.version" value="50.0" />
- <property name="user.country" value="US" />
- <property name="java.home" value="C:\Program Files\Java\jdk1.6.0_27\jre" />
- <property name="java.vm.info" value="mixed mode, sharing" />
- <property name="ant.file" value="C:\tools\New-sonar-examples\ut\ut-jacoco-ant-runTests\build.xml" />
- <property name="os.version" value="6.1" />
- <property name="path.separator" value=";" />
- <property name="lib.junit.dir" value="lib" />
- <property name="java.vm.version" value="20.2-b06" />
- <property name="user.variant" value="" />
- <property name="ant.library.dir" value="C:\tools\apache-ant-1.8.4\lib" />
- <property name="java.awt.printerjob" value="sun.awt.windows.WPrinterJob" />
- <property name="sun.io.unicode.encoding" value="UnicodeLittle" />
- <property name="awt.toolkit" value="sun.awt.windows.WToolkit" />
- <property name="sonar.tests" value="test" />
- <property name="user.home" value="C:\Users\david.racodon" />
- <property name="sonar.binaries" value="target/classes" />
- <property name="java.specification.vendor" value="Sun Microsystems Inc." />
- <property name="test.dir" value="test" />
- <property name="ant.file.UT coverage with JaCoCo and Ant" value="C:\tools\New-sonar-examples\ut\ut-jacoco-ant-runTests\build.xml" />
- <property name="java.library.path" value="C:\Program Files\Java\jdk1.6.0_27\jre\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\oraclexe\app\oracle\product\11.2.0\server\bin;;C:\Program Files\Java\jdk1.6.0_27\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;c:\Program Files\Hewlett-Packard\Drive Encryption\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\Broadcom\Broadcom 802.11\Driver;C:\Program Files\SlikSvn\bin\;C:\tools\apache-maven-2.2.1\bin;C:\Program Files\Bitvise Tunnelier;C:\Program Files\Git\cmd;C:\tools\sonar-runner-1.2\bin;C:\Program Files\TortoiseSVN\bin;C:\tools\sonar-autocontrol-2.2\bin;C:\tools\apache-ant-1.8.4\bin;." />
- <property name="java.vendor.url" value="http://java.sun.com/" />
- <property name="java.vm.vendor" value="Sun Microsystems Inc." />
- <property name="java.runtime.name" value="Java(TM) SE Runtime Environment" />
- <property name="sun.java.command" value="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner OneTest filtertrace=true haltOnError=false haltOnFailure=false showoutput=false outputtoformatters=true logfailedtests=true logtestlistenerevents=false formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,C:\tools\New-sonar-examples\ut\ut-jacoco-ant-runTests\target\reports\junit\TEST-OneTest.xml crashfile=C:\tools\New-sonar-examples\ut\ut-jacoco-ant-runTests\junitvmwatcher3095139592742172376.properties propsfile=C:\tools\New-sonar-examples\ut\ut-jacoco-ant-runTests\junit8904542288931256967.properties" />
- <property name="java.class.path" value="C:\tools\New-sonar-examples\ut\ut-jacoco-ant-runTests\target\classes;C:\tools\New-sonar-examples\ut\ut-jacoco-ant-runTests\lib\junit-4.10.jar;C:\tools\apache-ant-1.8.4\lib\ant-launcher.jar;C:\tools\apache-ant-1.8.4\lib\ant.jar;C:\tools\apache-ant-1.8.4\lib\ant-junit.jar;C:\tools\apache-ant-1.8.4\lib\ant-junit4.jar;C:\Users\DAVID~1.RAC\AppData\Local\Temp\jacocoagent8688395842183298852.jar" />
- <property name="ant.version" value="Apache Ant(TM) version 1.8.4 compiled on May 22 2012" />
- <property name="java.vm.specification.name" value="Java Virtual Machine Specification" />
- <property name="ant.file.type" value="file" />
- <property name="java.vm.specification.version" value="1.0" />
- <property name="sun.cpu.endian" value="little" />
- <property name="sun.os.patch.level" value="" />
- <property name="java.io.tmpdir" value="C:\Users\DAVID~1.RAC\AppData\Local\Temp\" />
- <property name="sonar.jdbc.url" value="jdbc:postgresql://localhost/sonardory" />
- <property name="java.vendor.url.bug" value="http://java.sun.com/cgi-bin/bugreport.cgi" />
- <property name="os.arch" value="x86" />
- <property name="java.awt.graphicsenv" value="sun.awt.Win32GraphicsEnvironment" />
- <property name="java.ext.dirs" value="C:\Program Files\Java\jdk1.6.0_27\jre\lib\ext;C:\windows\Sun\Java\lib\ext" />
- <property name="user.dir" value="C:\tools\New-sonar-examples\ut\ut-jacoco-ant-runTests" />
- <property name="line.separator" value="&#xd;&#xa;" />
- <property name="java.vm.name" value="Java HotSpot(TM) Client VM" />
- <property name="basedir" value="C:\tools\New-sonar-examples\ut\ut-jacoco-ant-runTests" />
- <property name="ant.java.version" value="1.6" />
- <property name="ant.core.lib" value="C:\tools\apache-ant-1.8.4\lib\ant.jar" />
- <property name="file.encoding" value="Cp1252" />
- <property name="java.specification.version" value="1.6" />
- <property name="src.dir" value="src" />
- <property name="ant.project.invoked-targets" value="all" />
- <property name="sonar.projectDescription" value="Example application using Ant and Jacoco" />
- </properties>
- <testcase classname="OneTest" name="testFoo" time="0.0040" />
- <system-out><![CDATA[]]></system-out>
- <system-err><![CDATA[]]></system-err>
-</testsuite>
View
11 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-reuseReports/src/One.java
@@ -1,11 +0,0 @@
-public class One {
- String message = "foo";
-
- public String foo() {
- return message;
- }
-
- public void uncoveredMethod() {
- System.out.println(foo());
- }
-}
View
17 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-runTests/README.md
@@ -1,17 +0,0 @@
-This example demonstrates how to analyze a Java project with Ant and Jacoco, running tests.
-
-Prerequisites
-=============
-* [Sonar](http://www.sonarsource.org/downloads/) 3.0 or higher
-* [Sonar Ant Task](http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Ant+Task) 2.0 or higher
-* [JaCoCo Ant Task](http://www.eclemma.org/jacoco/) 0.5.6 or higher
-* [Ant](http://ant.apache.org/) 1.7.1 or higher
-
-Usage
-=====
-* Set the path to the Ant Task in the build.xml file
-* Set the path to the JaCoCo Ant Task in the build.xml file
-* Set the sonar.jdbc.* properties in the build.xml file
-* Run the following command:
-
- ant all
View
105 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-runTests/build.xml
@@ -1,105 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="UT coverage with Ant and JaCoCo running tests" default="all" basedir="." xmlns:sonar="antlib:org.sonar.ant">
-
- <!-- ========= Define the main properties of this project ========= -->
- <property name="src.dir" value="src" />
- <property name="test.dir" value="test" />
- <property name="lib.junit.dir" value="lib" />
- <property name="build.dir" value="target" />
- <property name="classes.dir" value="${build.dir}/classes" />
- <property name="reports.dir" value="${build.dir}/reports" />
- <property name="reports.junit.xml.dir" value="${reports.dir}/junit" />
-
- <!-- Define the Sonar properties -->
- <property name="sonar.projectKey" value="org.codehaus.sonar:example-ut-ant-jacoco-runTests" />
- <property name="sonar.projectName" value="UT coverage with Ant and JaCoCo running tests" />
- <property name="sonar.projectVersion" value="1.0" />
- <property name="sonar.language" value="java" />
- <property name="sonar.sources" value="${src.dir}" />
- <property name="sonar.tests" value="${test.dir}" />
- <property name="sonar.binaries" value="${classes.dir}" />
- <property name="sonar.sourceEncoding" value="UTF-8" />
- <property name="sonar.surefire.reportsPath" value="${reports.junit.xml.dir}" />
-
- <!-- The following properties are required to use JaCoCo: -->
- <property name="sonar.dynamicAnalysis" value="reuseReports" />
- <property name="sonar.core.codeCoveragePlugin" value="jacoco" />
- <property name="sonar.jacoco.reportPath" value="target/jacoco.exec" />
-
- <!-- Add your basic Sonar configuration below: sonar.jdbc.url, sonar.jdbc.username, etc. properties -->
- <!--
- <property name="sonar.jdbc.url" value="jdbc:..." />
- <property name="sonar.jdbc.username" value="..." />
- <property name="sonar.jdbc.password" value="..." />
- -->
-
- <!-- ========= Define "regular" targets: clean, compile, test, ... ========= -->
- <target name="clean">
- <delete dir=".sonar" />
- <delete dir="${build.dir}" />
- <delete dir="${reports.dir}" />
- </target>
-
- <target name="init">
- <mkdir dir="${build.dir}" />
- <mkdir dir="${classes.dir}" />
- <mkdir dir="${reports.dir}" />
- <mkdir dir="${reports.junit.xml.dir}" />
- </target>
-
- <target name="compile" depends="init">
- <javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath" fork="true" debug="true" includeAntRuntime="false" />
- <javac srcdir="${test.dir}" destdir="${classes.dir}" classpathref="classpath" fork="true" debug="true" includeAntRuntime="false" />
- </target>
-
-
- <path id="classpath">
- <fileset dir="${lib.junit.dir}" includes="*.jar"/>
- </path>
-
- <target name="test" depends="compile">
-
- <taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask">
- <classpath>
- <path refid="classpath"/>
- </classpath>
- </taskdef>
-
- <!-- Import the JaCoCo Ant Task -->
- <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
- <!-- Update the following line, or put the "jacocoant.jar" file in your "$HOME/.ant/lib" folder -->
- <classpath path="path/to/jacoco/ant/task/lib/jacocoant.jar" />
- </taskdef>
-
- <!-- Run your unit tests, adding the JaCoCo agent -->
- <jacoco:coverage destfile="target/jacoco.exec" xmlns:jacoco="antlib:org.jacoco.ant">
- <junit fork="yes" dir="${basedir}" failureProperty="test.failed">
- <classpath location="${classes.dir}" />
- <classpath refid="classpath" />
-
- <formatter type="xml" />
- <batchtest todir="${reports.junit.xml.dir}">
- <fileset dir="${test.dir}">
- <include name="**/*Test.java" />
- </fileset>
- </batchtest>
- </junit>
- </jacoco:coverage>
-
- </target>
-
- <!-- ========= Define Sonar target ========= -->
- <target name="sonar" depends="compile">
- <taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml">
- <!-- Update the following line, or put the "sonar-ant-task-*.jar" file in your "$HOME/.ant/lib" folder -->
- <classpath path="path/to/sonar/ant/task/lib/sonar-ant-task-*.jar" />
- </taskdef>
-
- <!-- Execute Sonar -->
- <sonar:sonar />
- </target>
-
- <!-- ========= The main target "all" ========= -->
- <target name="all" depends="clean,compile,test,sonar" />
-
-</project>
View
BIN  projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-runTests/lib/junit-4.10.jar
Binary file not shown
View
11 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-runTests/src/One.java
@@ -1,11 +0,0 @@
-public class One {
- String message = "foo";
-
- public String foo() {
- return message;
- }
-
- public void uncoveredMethod() {
- System.out.println(foo());
- }
-}
View
12 projects/code-coverage/ut/_Prior to Sonar 3.4/ant/ut-ant-jacoco-runTests/test/OneTest.java
@@ -1,12 +0,0 @@
-import static org.junit.Assert.assertEquals;
-
-import org.junit.Test;
-
-public class OneTest {
- @Test
- public void testFoo() throws Exception {
- One one = new One();
- assertEquals("foo", one.foo());
- }
-
-}
View
19 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-cobertura-runTests/README.md
@@ -1,19 +0,0 @@
-This example demonstrates how to analyze a Java project with Maven and Cobertura, running tests.
-
-Prerequisites
-=============
-* [Sonar](http://www.sonarsource.org/downloads/) 2.12 or higher
-* Maven 2.2.1 or higher
-
-Usage
-=====
-* Build the project and run the tests:
-
- mvn clean install
-
-* Analyze the project with Sonar using Maven:
-
- mvn sonar:sonar
-
-
-
View
42 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-cobertura-runTests/pom.xml
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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>
-
- <groupId>org.codehaus.sonar</groupId>
- <artifactId>example-ut-maven-cobertura-runTests</artifactId>
- <version>1.0-SNAPSHOT</version>
-
- <name>UT coverage with Maven and Cobertura running tests</name>
-
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <sonar.language>java</sonar.language>
- <!-- Tells Sonar to run the unit tests -->
- <sonar.dynamicAnalysis>true</sonar.dynamicAnalysis>
- <!-- Tells Sonar to use Cobertura as the code coverage tool -->
- <sonar.core.codeCoveragePlugin>cobertura</sonar.core.codeCoveragePlugin>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
View
13 ...ts/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-cobertura-runTests/src/main/java/example/One.java
@@ -1,13 +0,0 @@
-package example;
-
-public class One {
- String message = "foo";
-
- public String foo() {
- return message;
- }
-
- public void uncoveredMethod() {
- System.out.println(foo());
- }
-}
View
13 ...ode-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-cobertura-runTests/src/test/java/example/OneTest.java
@@ -1,13 +0,0 @@
-package example;
-
-import static org.junit.Assert.assertEquals;
-import org.junit.Test;
-
-public class OneTest {
- @Test
- public void testFoo() throws Exception {
- One one = new One();
- assertEquals("foo", one.foo());
- }
-
-}
View
19 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-reuseReports/README.md
@@ -1,19 +0,0 @@
-This example demonstrates how to analyze a Java project with Maven reusing existing JUnit and Emma reports.
-
-Prerequisites
-=============
-* [Sonar](http://www.sonarsource.org/downloads/) 2.6 or higher
-* Maven 2.2.1 or higher
-* [Sonar Emma Plugin](http://docs.codehaus.org/display/SONAR/Sonar+Emma+Plugin) 1.2.1 or higher
-
-Usage
-=====
-* Compile the project:
-
- mvn clean install
-
-
-* Analyze the project with Sonar using Maven:
-
- mvn sonar:sonar
-
View
41 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-reuseReports/pom.xml
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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>
-
- <groupId>org.codehaus.sonar</groupId>
- <artifactId>example-ut-maven-emma-reuseReports</artifactId>
- <version>1.0-SNAPSHOT</version>
-
- <name>UT coverage with Maven reusing JUnit and Emma reports</name>
-
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <sonar.language>java</sonar.language>
-
- <!-- Tells Sonar to reuse existing reports -->
- <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
-
- <!-- Tells Sonar where the unit tests execution reports are -->
- <sonar.surefire.reportsPath>reports/junit</sonar.surefire.reportsPath>
-
- <!-- Tells Sonar to use Emma as the code coverage tool -->
- <sonar.core.codeCoveragePlugin>emma</sonar.core.codeCoveragePlugin>
-
- <!-- Tells Sonar where the unit tests code coverage reports are -->
- <sonar.emma.reportPath>reports/emma</sonar.emma.reportPath>
- </properties>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
View
BIN  projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-reuseReports/reports/emma/coverage-0.ec
Binary file not shown
View
BIN  projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-reuseReports/reports/emma/coverage.em
Binary file not shown
View
64 ...-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-reuseReports/reports/junit/TEST-example.OneTest.xml
@@ -1,64 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<testsuite failures="0" time="0.501" errors="0" skipped="0" tests="1" name="example.OneTest">
- <properties>
- <property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
- <property name="sun.boot.library.path" value="C:\Program Files\Java\jdk1.6.0_27\jre\bin"/>
- <property name="java.vm.version" value="20.2-b06"/>
- <property name="java.vm.vendor" value="Sun Microsystems Inc."/>
- <property name="java.vendor.url" value="http://java.sun.com/"/>
- <property name="path.separator" value=";"/>
- <property name="java.vm.name" value="Java HotSpot(TM) Client VM"/>
- <property name="file.encoding.pkg" value="sun.io"/>
- <property name="user.country" value="US"/>
- <property name="sun.java.launcher" value="SUN_STANDARD"/>
- <property name="sun.os.patch.level" value="Service Pack 1"/>
- <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
- <property name="user.dir" value="C:\git\sonar-examples\projects\code-coverage\ut\ut-maven-emma-runTests"/>
- <property name="java.runtime.version" value="1.6.0_27-b07"/>
- <property name="java.awt.graphicsenv" value="sun.awt.Win32GraphicsEnvironment"/>
- <property name="basedir" value="C:\git\sonar-examples\projects\code-coverage\ut\ut-maven-emma-runTests"/>
- <property name="java.endorsed.dirs" value="C:\Program Files\Java\jdk1.6.0_27\jre\lib\endorsed"/>
- <property name="os.arch" value="x86"/>
- <property name="surefire.real.class.path" value="C:\Users\DAVID~1.RAC\AppData\Local\Temp\surefirebooter7007157500388350710.jar"/>
- <property name="java.io.tmpdir" value="C:\Users\DAVID~1.RAC\AppData\Local\Temp\"/>
- <property name="line.separator" value="
-"/>
- <property name="java.vm.specification.vendor" value="Sun Microsystems Inc."/>
- <property name="user.variant" value=""/>
- <property name="os.name" value="Windows 7"/>
- <property name="sun.jnu.encoding" value="Cp1252"/>
- <property name="java.library.path" value="C:\Program Files\Java\jdk1.6.0_27\jre\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files\Java\jdk1.6.0_27\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;c:\Program Files\Hewlett-Packard\Drive Encryption\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\Broadcom\Broadcom 802.11\Driver;C:\Program Files\SlikSvn\bin\;C:\Program Files\Bitvise Tunnelier;C:\Program Files\Git\cmd;C:\tools\sonar-runner-1.4\bin;C:\Program Files\TortoiseSVN\bin;C:\tools\sonar-autocontrol-2.2\bin;C:\tools\apache-ant-1.8.4\bin;C:\Program Files\Microsoft Windows Performance Toolkit\;C:\Program Files\Cppcheck\;C:\tools\Python27;C:\tools\Python27\Scripts;C:\tools\apache-maven-2.2.1\bin;C:\Program Files\Gallio\bin;."/>
- <property name="surefire.test.class.path" value="C:\git\sonar-examples\projects\code-coverage\ut\ut-maven-emma-runTests\target\test-classes;C:\git\sonar-examples\projects\code-coverage\ut\ut-maven-emma-runTests\target\generated-classes\emma\classes;C:\Users\david.racodon\.m2\repository\junit\junit\4.8.1\junit-4.8.1.jar;C:\Users\david.racodon\.m2\repository\emma\emma\2.1.5320\emma-2.1.5320.jar;"/>
- <property name="java.specification.name" value="Java Platform API Specification"/>
- <property name="java.class.version" value="50.0"/>
- <property name="sun.management.compiler" value="HotSpot Client Compiler"/>
- <property name="os.version" value="6.1"/>
- <property name="user.home" value="C:\Users\david.racodon"/>
- <property name="user.timezone" value=""/>
- <property name="java.awt.printerjob" value="sun.awt.windows.WPrinterJob"/>
- <property name="java.specification.version" value="1.6"/>
- <property name="file.encoding" value="Cp1252"/>
- <property name="user.name" value="david.racodon"/>
- <property name="java.class.path" value="C:\git\sonar-examples\projects\code-coverage\ut\ut-maven-emma-runTests\target\test-classes;C:\git\sonar-examples\projects\code-coverage\ut\ut-maven-emma-runTests\target\generated-classes\emma\classes;C:\Users\david.racodon\.m2\repository\junit\junit\4.8.1\junit-4.8.1.jar;C:\Users\david.racodon\.m2\repository\emma\emma\2.1.5320\emma-2.1.5320.jar;"/>
- <property name="java.vm.specification.version" value="1.0"/>
- <property name="sun.arch.data.model" value="32"/>
- <property name="java.home" value="C:\Program Files\Java\jdk1.6.0_27\jre"/>
- <property name="sun.java.command" value="C:\Users\DAVID~1.RAC\AppData\Local\Temp\surefirebooter7007157500388350710.jar C:\Users\DAVID~1.RAC\AppData\Local\Temp\surefire7148230750155011974tmp C:\Users\DAVID~1.RAC\AppData\Local\Temp\surefire7949526708386061619tmp"/>
- <property name="java.specification.vendor" value="Sun Microsystems Inc."/>
- <property name="user.language" value="en"/>
- <property name="awt.toolkit" value="sun.awt.windows.WToolkit"/>
- <property name="java.vm.info" value="mixed mode, sharing"/>
- <property name="java.version" value="1.6.0_27"/>
- <property name="java.ext.dirs" value="C:\Program Files\Java\jdk1.6.0_27\jre\lib\ext;C:\windows\Sun\Java\lib\ext"/>
- <property name="sun.boot.class.path" value="C:\Program Files\Java\jdk1.6.0_27\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\modules\jdk.boot.jar;C:\Program Files\Java\jdk1.6.0_27\jre\classes"/>
- <property name="java.vendor" value="Sun Microsystems Inc."/>
- <property name="localRepository" value="C:\Users\david.racodon\.m2\repository"/>
- <property name="file.separator" value="\"/>
- <property name="java.vendor.url.bug" value="http://java.sun.com/cgi-bin/bugreport.cgi"/>
- <property name="sun.cpu.endian" value="little"/>
- <property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
- <property name="sun.desktop" value="windows"/>
- <property name="sun.cpu.isalist" value=""/>
- </properties>
- <testcase time="0.483" classname="example.OneTest" name="testFoo"/>
-</testsuite>
View
4 .../code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-reuseReports/reports/junit/example.OneTest.txt
@@ -1,4 +0,0 @@
--------------------------------------------------------------------------------
-Test set: example.OneTest
--------------------------------------------------------------------------------
-Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.509 sec
View
13 ...cts/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-reuseReports/src/main/java/example/One.java
@@ -1,13 +0,0 @@
-package example;
-
-public class One {
- String message = "foo";
-
- public String foo() {
- return message;
- }
-
- public void uncoveredMethod() {
- System.out.println(foo());
- }
-}
View
20 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-runTests/README.md
@@ -1,20 +0,0 @@
-This example demonstrates how to analyze a Java project with Maven and Emma, running tests.
-
-Prerequisites
-=============
-* [Sonar](http://www.sonarsource.org/downloads/) 2.6 or higher
-* Maven 2.2.1 or higher
-* [Sonar Emma Plugin](http://docs.codehaus.org/display/SONAR/Sonar+Emma+Plugin) 1.2.1 or higher
-
-Usage
-=====
-* Compile the project:
-
- mvn clean install
-
-
-* Analyze the project with Sonar using Maven:
-
- mvn sonar:sonar
-
-
View
42 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-runTests/pom.xml
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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>
-
- <groupId>org.codehaus.sonar</groupId>
- <artifactId>example-ut-maven-emma-runTests</artifactId>
- <version>1.0-SNAPSHOT</version>
-
- <name>UT coverage with Maven and Emma running tests</name>
-
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <sonar.language>java</sonar.language>
- <!-- Tells Sonar to run the unit tests -->
- <sonar.dynamicAnalysis>true</sonar.dynamicAnalysis>
- <!-- Tells Sonar to use Emma as the code coverage tool -->
- <sonar.core.codeCoveragePlugin>emma</sonar.core.codeCoveragePlugin>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
View
13 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-runTests/src/main/java/example/One.java
@@ -1,13 +0,0 @@
-package example;
-
-public class One {
- String message = "foo";
-
- public String foo() {
- return message;
- }
-
- public void uncoveredMethod() {
- System.out.println(foo());
- }
-}
View
13 ...cts/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-emma-runTests/src/test/java/example/OneTest.java
@@ -1,13 +0,0 @@
-package example;
-
-import static org.junit.Assert.assertEquals;
-import org.junit.Test;
-
-public class OneTest {
- @Test
- public void testFoo() throws Exception {
- One one = new One();
- assertEquals("foo", one.foo());
- }
-
-}
View
18 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-jacoco-reuseReports/README.md
@@ -1,18 +0,0 @@
-This example demonstrates how to analyze a project with Maven reusing JUnit and JaCoCo reports.
-
-Prerequisites
-=============
-* [Sonar](http://www.sonarsource.org/downloads/) 2.12 or higher
-* Maven 2.2.1 or higher
-
-Usage
-=====
-* Build the project:
-
- mvn clean install
-
-* Analyze the project with Sonar using Maven:
-
- mvn sonar:sonar
-
-
View
41 projects/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-jacoco-reuseReports/pom.xml
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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>
-
- <groupId>org.codehaus.sonar</groupId>
- <artifactId>example-ut-maven-jacoco-reuseReports</artifactId>
- <version>1.0-SNAPSHOT</version>
-
- <name>UT coverage with Maven reusing JUnit and JaCoCo reports</name>
-
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <sonar.language>java</sonar.language>
-
- <!-- Tells Sonar to reuse existing reports -->
- <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
-
- <!-- Tells Sonar where the unit tests execution reports are -->
- <sonar.surefire.reportsPath>reports/junit</sonar.surefire.reportsPath>
-
- <!-- Tells Sonar that the code coverage tool by unit tests is JaCoCo -->
- <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
-
- <!-- Tells Sonar where the unit tests code coverage report is -->
- <sonar.jacoco.reportPath>reports/coverage/jacoco.exec</sonar.jacoco.reportPath>
- </properties>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
View
BIN  ...cts/code-coverage/ut/_Prior to Sonar 3.4/maven/ut-maven-jacoco-reuseReports/reports/coverage/jacoco.exec
Binary file not shown
View
64 ...overage/ut/_Prior to Sonar 3.4/maven/ut-maven-jacoco-reuseReports/reports/junit/TEST-example.OneTest.xml
@@ -1,64 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<testsuite failures="0" time="0.03" errors="0" skipped="0" tests="1" name="example.OneTest">
- <properties>
- <property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>