Emma check goal always gives false-positive results
----------------------------------------------------
Key: MOJO-1247
URL: http://jira.codehaus.org/browse/MOJO-1247
Project: Mojo
Issue Type: Bug
Components: emma
Reporter: Petr Pancocha
Attachments: pom.xml
If I try to configure code coverage thresholds using attached pom.xml, I always
get false-positive results (i.e. i.e. plugin's "check goal" always says that
code coverage is OK independently of the configuration).
I found that the problem is on the line 175 of the EmmaCheckMojo.java (method
doExecute). The condition "if ( allNodes.size() > 1 )" is wrong! It MUST be "if
( allNodes.size() >= 1 )" ! The current implementation causes that build
process never fails (even if code-coverage is insufficient).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email