From: John W. L. <Joh...@sa...> - 2011-04-28 20:36:35
|
That is odd behavior. I am not sure what is going on. Since you said your build tool puts the source and classes in different directories, you would have cobertura-instrument point to the classes and have cobertura-report point to the source. Can I see your commands? John From: karl francis [mailto:klj...@ho...] Sent: Thursday, April 28, 2011 11:07 AM To: cob...@li... Subject: [Cobertura-devel] Branch Coverage Showing as NA When I instrument the code and the .java file and .class file are in the same directory I get branch coverage numbers in the report. When I instrument the code and the .java file is NOT available, I don't get branch coverage numbers in the report. My build tool puts the .class files in a different directory that the .java files. Does cobertura-instrument.sh support specifying a source directory? Why is the source needed for branch coverage numbers to be generated? Thanks, Karl |