dbremner / testability-explorer

Automatically exported from code.google.com/p/testability-explorer
Apache License 2.0
0 stars 0 forks source link

source annotated report shows 0% for classes #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. clean checkout, go to core and run mvn package
2. run java -cp target/core-1.3.1-SNAPSHOT-with-deps.jar
com.google.test.metric.Testability -print source .
3. Observe 0% on packages in the source report (te-report/index.html)

What is the expected output? What do you see instead?
Should get the percentage of good, ok, needs work classes per package

Original issue reported on code.google.com by aeagle22206 on 15 Apr 2009 at 1:29

GoogleCodeExporter commented 8 years ago
This bug screams integer division, and lo and behold, it is. the functions
getExcellentPercent, getGoodPercent, and getNeedsWorkPercent in
core/src/main/java/com/google/test/metric/report/SummaryGraphReport.java (lines
102-112) need to cast the return values of getExcllentCount() etc. to doubles 
before
dividing.

Original comment by valkar...@gmail.com on 12 Jun 2009 at 6:21