Hi,
it could be the case that Hibernate is confused by the additional fields
JaCoCo adds to your beans. See FAQ:
http://www.eclemma.org/jacoco/trunk/doc/faq.html
You can verify this by excluding your entity beans from JaCoCo
intrumentation with the excludes property.
Best regards,
-marc
My code uses reflection. Why does it fail when I execute it with
JaCoCo?
To collect execution data JaCoCo instruments the classes under test
which adds two members to the classes: A private static field
|$jacocoData| and a private static method |$jacocoInit()|. Both members
are marked as synthetic.
Please change your code to ignore synthetic members. This is a good
practice anyways as also the Java compiler creates synthetic members in
certain situation.
On 26.08.14 00:09, [email protected] wrote:
my hibernate tests are passes in normal maven build but not with jacoco
coverage plugin.
Error Message
No row with the given identifier exists:
[com.project.hibernate.entity.DummyProperty#30]
Stacktrace
org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
[com.project.hibernate.entity.DummyProperty#30]
Do you have any idea, is this normal behaviour?
my command line is:
mvn org.jacoco:jacoco-maven-plugin:prepare-agent clean install -Ptest-coverage
-DfailIfNoTests=false -Dmaven.test.failure.ignore=true
--
You received this message because you are subscribed to the Google Groups "JaCoCo
and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.