lucian.marcuta
lucian.marcuta

Reputation: 1260

Generate coverage report from linux command line

I am trying to generate a code coverage for a jar using emma. I`ve got emma.jar from http://sourceforge.net/projects/emma/files/emma-release/2.0.5312/emma-2.0.5312-lib.zip/download and I copied myJar.jar in my workspace directory. myJar its a jar for which i want to find out code" coverage. I tried the following commands:

~/workspace$ java emmarun -cp .:emma:myJar -jar myJar.jar 
~/workspace$ java emmarun -cp ./emma.jar -jar myJar.jar
~/workspace$ java emma run -cp emma.jar -jar myJar.jar
~/workspace$ java emmarun -cp .:emma.jar:myJar.jar -jar myJar.jar

but every time a `Error: Could not find or load main class emmarun erro is raised Any ideas?

Upvotes: 0

Views: 1032

Answers (1)

killabyte_garcia
killabyte_garcia

Reputation: 160

java -cp emma.jar emmarun your_code_dir

Upvotes: 1

Related Questions