From c72a0132b024141716b35550fd7204338b2fc673 Mon Sep 17 00:00:00 2001 From: danielhanrahan Date: Fri, 9 Feb 2024 17:40:18 +0000 Subject: [PATCH] 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 --- cps-parent/pom.xml | 7 ++-- integration-test/pom.xml | 42 ++++++---------------- .../performance/base/PerfTestBase.groovy | 1 - 3 files changed, 15 insertions(+), 35 deletions(-) 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 { -- 2.16.6