From: danielhanrahan Date: Fri, 9 Feb 2024 17:40:18 +0000 (+0000) Subject: Include integration test results in Jacoco X-Git-Tag: 3.4.4~30 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F02%2F137202%2F3;p=cps.git Include integration test results in Jacoco integration-test module is not recording code coverage due to incorrectly overriding the maven surefire config from parent pom. Issue-ID: CPS-2086 Signed-off-by: danielhanrahan Change-Id: I774c64acedca546f5c01403597bd9f5010de73d2 --- diff --git a/cps-parent/pom.xml b/cps-parent/pom.xml index 2e81b004e..6e7554bf5 100644 --- a/cps-parent/pom.xml +++ b/cps-parent/pom.xml @@ -3,7 +3,7 @@ ============LICENSE_START======================================================= Copyright (c) 2021 Pantheon.tech. Modifications Copyright (C) 2021 Bell Canada. - Modifications Copyright (C) 2021-2023 Nordix Foundation. + Modifications Copyright (C) 2021-2024 Nordix Foundation. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -339,7 +339,10 @@ **/*Test.java - **/IT*.java + + **/*PerfTest.java - default - - true - + include-performance + + -Xms512m -Xmx512m + org.apache.maven.plugins - maven-surefire-plugin + maven-failsafe-plugin - - %regex[.*PerfTest.*] - + + **/*PerfTest.java + - - include-performance - - diff --git a/integration-test/src/test/groovy/org/onap/cps/integration/performance/base/PerfTestBase.groovy b/integration-test/src/test/groovy/org/onap/cps/integration/performance/base/PerfTestBase.groovy index b455e69c3..ce0aab45b 100644 --- a/integration-test/src/test/groovy/org/onap/cps/integration/performance/base/PerfTestBase.groovy +++ b/integration-test/src/test/groovy/org/onap/cps/integration/performance/base/PerfTestBase.groovy @@ -21,7 +21,6 @@ package org.onap.cps.integration.performance.base import org.onap.cps.integration.base.CpsIntegrationSpecBase -import org.springframework.util.StopWatch abstract class PerfTestBase extends CpsIntegrationSpecBase {