Propagate JaCoCo argLine to Karaf as needed 62/97962/3
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 17 Oct 2021 20:23:02 +0000 (22:23 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 17 Oct 2021 21:13:06 +0000 (23:13 +0200)
commite474188bbc706917d2966928cba0283d60f989e6
treeacb0bfd4c85e3c3851d8bb79c72ed143512efe39
parent860a928297061cc8b91932cced37101de881993a
Propagate JaCoCo argLine to Karaf as needed

We have disabled JaCoCo execution reports because they do not work
with SFT correctly. This problem boils down to running the right JVM
with JaCoCo options -- it should not be the surefire JVM, but rather
Karaf we start from it.

Use @{argLine} special handling in surefire to pass the argLine (set by
JaCoCo) as a system property rather than it being a JVM argument.

This does not solve integration with Sonar, as we still need to deal
with the XML report being empty, but it is a start and an example for
others using pax-exam.

JIRA: ODLPARENT-274
Change-Id: I9b33e5b5c9b3b3b2b347f4f4ef034acb677d501a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
features-test/src/main/java/org/opendaylight/odlparent/featuretest/SingleFeatureTest.java
single-feature-parent/pom.xml