Slide 1
Most trusted JOB oriented professional program
DevOps Certified Professional (DCP)

Take your first step into the world of DevOps with this course, which will help you to learn about the methodologies and tools used to develop, deploy, and operate high-quality software.

Slide 2
DevOps to DevSecOps – Learn the evolution
DevSecOps Certified Professional (DSOCP)

Learn to automate security into a fast-paced DevOps environment using various open-source tools and scripts.

Slide 2
Get certified in the new tech skill to rule the industry
Site Reliability Engineering (SRE) Certified Professional

A method of measuring and achieving reliability through engineering and operations work – developed by Google to manage services.

Slide 2
Master the art of DevOps
Master in DevOps Engineering (MDE)

Get enrolled for the most advanced and only course in the WORLD which can make you an expert and proficient Architect in DevOps, DevSecOps and Site Reliability Engineering (SRE) principles together.

Slide 2
Gain expertise and certified yourself
Azure DevOps Solutions Expert

Learn about the DevOps services available on Azure and how you can use them to make your workflow more efficient.

Slide 3
Learn and get certified
AWS Certified DevOps Professional

Learn about the DevOps services offered by AWS and how you can use them to make your workflow more efficient.

previous arrow
next arrow

Ant script with EMMA code-coverage

Spread the Knowledge

scmuser created the topic: Ant script with EMMA code-coverage

Ant script with EMMA code-coverage so it can find runtime coverage data?

[code language=”css”]
<taskdef resource=””>
<pathelement location=”lib/emma.jar” />
<pathelement location=”lib/emma_ant.jar” />

<target name=”compile”>
<mkdir dir=”build”/> <!– vytvori adresar build –>
<mkdir dir=”build/classes”/>
<mkdir dir=”build/test”/>
<javac destdir=”build/classes” srcdir=”src” debug=”true” /> <!– prelozi zdrojove kody –>
<javac destdir=”build/test” srcdir=”test”> <!– prelozi testy –>
<classpath> <!– pro prelozeni testu je potreba junit a prelozena aplikace –>
<pathelement location=”lib/junit-4.5.jar” />
<pathelement location=”build/classes” />

<target name=”build” depends=”compile”>
<jar destfile=”tetris.jar” basedir=”build/classes”> <!– zabali aplikaci do jaru –>
<attribute name=”Main-Class” value=”tetris.Main”/>
<attribute name=”Class-Path” value=”lib/mysql-connector-java-5.1.6-bin.jar lib/derbyclient.jar”/>

<target name=”jar” depends=”build”></target>

<target name=”run” depends=”compile”>
<java classname=”tetris.Main” classpath=”build/classes”> <!– spusti aplikaci –>
<pathelement location=”lib/mysql-connector-java-5.1.6-bin.jar” />
<pathelement location=”lib/derbyclient.jar” />

<target name=”instrument” depends=”compile”>
<mkdir dir=”build/instrumented”/>

<emma verbosity=”verbose”> <!– vytvori tridy upravene pro sledovani coverage –>
<instr instrpath=”build/classes”
merge=”true” />

<target name=”test” depends=”instrument”>
<mkdir dir=”reports” />
<mkdir dir=”reports/junit” />

<junit printsummary=”yes” haltonfailure=”no” fork=”true”> <!– pusti JUnit testy –>
<pathelement location=”build/test” />
<pathelement location=”build/classes” />
<pathelement location=”build/instrumented” />
<pathelement location=”lib/junit-4.5.jar” />
<pathelement location=”lib/emma.jar” />
<pathelement location=”lib/emma_ant.jar” />

<formatter usefile=”false” type=”brief” />
<formatter type=”plain”/>

<batchtest fork=”yes” todir=”reports/junit”> <!– reporty budou v adresari reports/junit –>
<fileset dir=”test”>
<include name=”**/”/>
<jvmarg value=”-Demma.coverage.out.file=build/coverage.emma”/>
<jvmarg value=”-Demma.coverage.out.merge=true” />

<emma enabled=”true” verbosity=”verbose”> <!– vygeneruje report emmy –>
<report sourcepath=”src”>
<fileset dir=”build” includes=”*.emma” />

<html outfile=”reports/coverage.html” />

<target name=”clean”>
<delete dir=”build”/> <!– smaze adresar build –>
<delete dir=”reports”/>
<delete file=”tetris.jar”/>

processing input file […NetBeansProjects/Tetris3/build/metadata.emma] …
loaded 25 metadata entries
1 file(s) read and merged in 5 ms
nothing to do: no runtime coverage data found in any of the data files

Rajesh Kumar
0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x