You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Martin van den Bemt (JIRA)" <ji...@codehaus.org> on 2005/12/19 20:46:48 UTC
[jira] Commented: (MNG-1625) "mvn clover:report" generates errors
in tests that execute properly in "mvn test"
[ http://jira.codehaus.org/browse/MNG-1625?page=comments#action_53746 ]
Martin van den Bemt commented on MNG-1625:
------------------------------------------
I just tried to reproduce the problem, but to no avail. On a simple project, with one class, one test case, in the class I read pom.xml from the project root and everything passes as it should.
new File("pom.xml") wil return the pom.xml from the root of the project. So maybe you are using some different paths ?
If you have the opportunity it would be nice if you can upload a very simpel project which shows your problem.
> "mvn clover:report" generates errors in tests that execute properly in "mvn test"
> ---------------------------------------------------------------------------------
>
> Key: MNG-1625
> URL: http://jira.codehaus.org/browse/MNG-1625
> Project: Maven 2
> Type: Bug
> Components: maven-clover-plugin
> Reporter: Chris Gray
>
>
> Some of our java code opens data files, which have been stored in the ${PROJECT_ROOT} directory. When we execute "mvn test", the code compiles fine, and all unit tests pass. However, when we add the clover plugin to the pom.xml file, all tests fail during the clover run. As far as I can tell, it looks like clover when executes the tests, they look for the data files in the ${PROJECT_ROOT}/target/clover directory instead of the ${PROJECT_ROOT} directory.
--
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org