scmuser created the topic: Cobertura – how to check if class file is instrumented or not?
Hi,
Could you please tell me how to check if class file is instrumented or not using Cobertura?
scmuser created the topic: Cobertura – how to check if class file is instrumented or not?
Hi,
Could you please tell me how to check if class file is instrumented or not using Cobertura?
scmuser created the topic: cobertura merge two instrumented data file
Hi,
Is it possible to merge two diff data file “cobertura.ser” file from two diff instrumentation?
scmuser created the topic: Npm module “grunt-open” not found. Is it installed?
I am getting following error…
grunt lite [31m>> [39mLocal Npm module "grunt-open" not found. Is it installed? Loading "nodestatic.js" tasks...[31mERROR[39m [31m>> [39mError: Cannot find module 'node-static' [31m>> [39mLocal Npm module "grunt-contrib-jshint" not found. Is it installed? [31m>> [39mLocal Npm module "grunt-exec" not found. Is it installed? [31m>> [39mLocal Npm module "grunt-contrib-copy" not found. Is it installed? [31m>> [39mLocal Npm module "grunt-contrib-compass" not found. Is it installed? [31m>> [39mLocal Npm module "grunt-contrib-watch" not found. Is it installed? [31m>> [39mLocal Npm module "grunt-contrib-symlink" not found. Is it installed? [31m>> [39mLocal Npm module "grunt-istanbul" not found. Is it installed? [31m>> [39mLocal Npm module "intern" not found. Is it installed? Loading "Gruntfile.js" tasks...[31mERROR[39m [31m>> [39mError: Task "exec:installdeps" not found. [33mWarning: Task "lite" not found. Use --force to continue.[39m [31mAborted due to warnings.[39m
rajeshkumar created the topic: Instrumentating class file using Ant in Cobertura
Instrumentating class file using Ant in Cobertura
Cobertura’s documentation gives the following example to show how instrumentation can be done on classes inside a jar file that is on Cobertura’s classpath.
ANT SCRIPT
<project> <property name="cobertura.dir" value="../cobertura-2.0.3" /> <property name="instrumented.dir" value="../destination" /> <property name="jars.dir" value="../basedir" /> <property name=" cobertura.datafile " value="../datafile" /> <path id="cobertura.classpath"> <fileset dir="${cobertura.dir}"> <include name="cobertura-2.0.3.jar" /> <include name="lib/**/*.jar" /> </fileset> </path> <target name="instrument-classes"> <taskdef classpathref="cobertura.classpath" resource="tasks.properties" /> <delete file="cobertura.ser" /> <cobertura-instrument todir="${instrumented.dir}" datafile="${cobertura.datafile}"> <fileset dir="${jars.dir}"> <include name="XXX.jar" /> </fileset> <fileset dir="${jars.dir}"> <include name="YYYY.jar" /> </fileset> </cobertura-instrument> </target> </project>
FAQ –
github.com/cobertura/cobertura/wiki/FAQ#…-coverage-everywhere
alvinalexander.com/blog/post/java/sample…ura-ant-build-script
alvinalexander.com/blog/post/best-practi…ertura-code-coverage
stackoverflow.com/questions/12690688/cob…ra-ant-merge-reports
mojo.codehaus.org/cobertura-maven-plugin/cobertura-mojo.html
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn