Brion VIBBER has submitted this change and it was merged.
Change subject: Produce code coverage reports in html
......................................................................
Produce code coverage reports in html
Plus README.me listing how to produce them
Change-Id: I1f9cf4bbfe7a8065a9ba36058a1622bceb8cf9ac
---
A README.md
M pom.xml
2 files changed, 34 insertions(+), 0 deletions(-)
Approvals:
Brion VIBBER: Verified; Looks good to me, approved
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..6271fe2
--- /dev/null
+++ b/README.md
@@ -0,0 +1,23 @@
+# Running tests
+
+Run:
+
+ $ mvn test
+
+
+# Code coverage output
+
+To run tests and produce a code coverage report, run:
+
+ $ mvn cobertura:cobertura
+
+Output will appear in target/sites/.
+
+Note that on Mac OS X, if Apple Java 1.6 is installed you will get a failure
here due to some sort of configuration dependency on particularities of Oracle
Java's file layout which do not match Apple's version.
+You can work around it like so:
+
+ cd /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
+ sudo mkdir lib
+ cd lib
+ sudo ln -s ../Classes/classes.jar tools.jar
+
diff --git a/pom.xml b/pom.xml
index 02c8467..f5e5a13 100644
--- a/pom.xml
+++ b/pom.xml
@@ -32,6 +32,17 @@
<build>
<plugins>
<plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <version>2.6</version>
+ <configuration>
+ <formats>
+ <format>html</format>
+ </formats>
+ </configuration>
+ </plugin>
+
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.10</version>
--
To view, visit https://gerrit.wikimedia.org/r/91808
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1f9cf4bbfe7a8065a9ba36058a1622bceb8cf9ac
Gerrit-PatchSet: 2
Gerrit-Project: apps/android/java-mwapi
Gerrit-Branch: master
Gerrit-Owner: Yuvipanda <[email protected]>
Gerrit-Reviewer: Brion VIBBER <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits