8

I have a couple of dbunit-tests for a jee5-project. They work great when I try to run them with "run as TestNG test" in Eclipse. But when I try to run them as "Cover as TestNG test" they fails with the error "javax.persistence.PersistenceException: No Persistence provider for EntityManager named test".

To me it seems like the "Cover as.." attempt to run the tests with the wrong persistence.xml, eg not using the one in src/test/resources/META-INF but rather src/main/resources/META-INF (or no one at all).

Is there a way to tell cobertura that it needs the files in src/test/resources to run the tests?

Should I report a bug to the eCobertura-developers?

Roland
  • 5,328
  • 10
  • 37
  • 55

0 Answers0