forked from cucumber/cucumber-jvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added cobertura code coverage and started to clean up some cruftiness…
… in the io package
- Loading branch information
1 parent
a85cfde
commit b4fbfb9
Showing
23 changed files
with
371 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
if [ -z "$COBERTURA_HOME" ]; then | ||
echo "You need to define COBERTURA_HOME" | ||
exit 1 | ||
fi | ||
|
||
mvn clean compile | ||
ant -f cobertura.xml instrument | ||
mvn test | ||
ant -f cobertura.xml report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<project> | ||
<target name="instrument"> | ||
<!-- we don't bother with the clojure and scala modules --> | ||
<antcall target="instrumentAModule"> | ||
<param name="module" value="core"/> | ||
</antcall> | ||
<antcall target="instrumentAModule"> | ||
<param name="module" value="groovy"/> | ||
</antcall> | ||
<antcall target="instrumentAModule"> | ||
<param name="module" value="guice"/> | ||
</antcall> | ||
<antcall target="instrumentAModule"> | ||
<param name="module" value="ioke"/> | ||
</antcall> | ||
<antcall target="instrumentAModule"> | ||
<param name="module" value="java"/> | ||
</antcall> | ||
<antcall target="instrumentAModule"> | ||
<param name="module" value="jruby"/> | ||
</antcall> | ||
<antcall target="instrumentAModule"> | ||
<param name="module" value="junit"/> | ||
</antcall> | ||
<antcall target="instrumentAModule"> | ||
<param name="module" value="jython"/> | ||
</antcall> | ||
<antcall target="instrumentAModule"> | ||
<param name="module" value="openejb"/> | ||
</antcall> | ||
<antcall target="instrumentAModule"> | ||
<param name="module" value="picocontainer"/> | ||
</antcall> | ||
<antcall target="instrumentAModule"> | ||
<param name="module" value="rhino"/> | ||
</antcall> | ||
<antcall target="instrumentAModule"> | ||
<param name="module" value="spring"/> | ||
</antcall> | ||
<antcall target="instrumentAModule"> | ||
<param name="module" value="weld"/> | ||
</antcall> | ||
</target> | ||
|
||
<target name="report" depends="merge"> | ||
<property name="src.dir" value="src/main/java/"/> | ||
<cobertura-report datafile="sum.ser" | ||
format="html" | ||
destdir="./target/report"> | ||
<fileset dir="./core/${src.dir}"/> | ||
<fileset dir="./groovy/${src.dir}"/> | ||
<fileset dir="./guice/${src.dir}"/> | ||
<fileset dir="./ioke/${src.dir}"/> | ||
<fileset dir="./java/${src.dir}"/> | ||
<fileset dir="./jruby/${src.dir}"/> | ||
<fileset dir="./junit/${src.dir}"/> | ||
<fileset dir="./jython/${src.dir}"/> | ||
<fileset dir="./picocontainer/${src.dir}"/> | ||
<fileset dir="./rhino/${src.dir}"/> | ||
<fileset dir="./spring/${src.dir}"/> | ||
<fileset dir="./weld/${src.dir}"/> | ||
</cobertura-report> | ||
</target> | ||
|
||
<target name="merge"> | ||
<cobertura-merge datafile="sum.ser"> | ||
<fileset dir="."> | ||
<include name="**/cobertura.ser"/> | ||
</fileset> | ||
</cobertura-merge> | ||
</target> | ||
|
||
<target name="instrumentAModule"> | ||
<property name="classes.dir" value="target/classes"/> | ||
<cobertura-instrument todir="${module}/${classes.dir}"> | ||
<fileset dir="${module}/target/classes"> | ||
<include name="**/*.class"/> | ||
</fileset> | ||
</cobertura-instrument> | ||
</target> | ||
|
||
<property environment="env"/> | ||
<property name="cobertura.dir" value="${env.COBERTURA_HOME}"/> | ||
<path id="cobertura.classpath"> | ||
<fileset dir="${cobertura.dir}"> | ||
<include name="cobertura.jar"/> | ||
<include name="lib/**/*.jar"/> | ||
</fileset> | ||
</path> | ||
<taskdef classpathref="cobertura.classpath" resource="tasks.properties"/> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.