From 1a13656fec7773178cba7015fa25311c32324f8e Mon Sep 17 00:00:00 2001 From: GauravChawlaMOJ <58194626+GauravChawlaMOJ@users.noreply.github.com> Date: Wed, 29 Nov 2023 17:05:29 +0000 Subject: [PATCH] DFPL-11819- merge-to-master (#4956) Co-authored-by: gauravchawla --- Jenkinsfile_nightly | 4 ++-- service/build.gradle | 24 +++++++----------------- 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/Jenkinsfile_nightly b/Jenkinsfile_nightly index 0642cdb1dd3..1d5a3f89864 100644 --- a/Jenkinsfile_nightly +++ b/Jenkinsfile_nightly @@ -79,7 +79,7 @@ withNightlyPipeline(type, product, component) { loadVaultSecrets(integrationTestSecrets) - //enableMutationTest() + enableMutationTest() enableFullFunctionalTest(240) // 'microsoft' and 'safari' to be returned to crossbrowser tests once FPLA-3172 improvements are complete //enableCrossBrowserTest(['chrome', 'firefox']) @@ -90,7 +90,7 @@ withNightlyPipeline(type, product, component) { setupSecretsForIntegrationTests(pipelineConf) } - after('mutationTest') { + afterAlways('mutationTest') { archiveExtraFilesForIntegrationTests() teardownSecretsForIntegrationTests() } diff --git a/service/build.gradle b/service/build.gradle index 93c4411a3ee..953fc5823cc 100644 --- a/service/build.gradle +++ b/service/build.gradle @@ -445,27 +445,17 @@ integration { } pitest { - targetClasses = ['uk.gov.hmcts.reform.fpl.*'] - pitestVersion = '1.15.0' - threads = 16 - outputFormats = ['XML', 'HTML'] - timestampedReports = false - excludedClasses = [ + targetClasses.set(['uk.gov.hmcts.reform.fpl.*']) + threads.set(15) + outputFormats.set(['XML', 'HTML']) + excludedClasses.set([ 'uk.gov.hmcts.reform.fpl.config.*', 'uk.gov.hmcts.reform.fpl.exceptions.*', 'uk.gov.hmcts.reform.fpl.controllers.*', 'uk.gov.hmcts.reform.fpl.testingsupport.*' - ] - junit5PluginVersion = '1.1.1' - logger.lifecycle("Runs PIT mutation Tests") - testSourceSets = [sourceSets.test] - mainSourceSets = [sourceSets.main] - enableDefaultIncrementalAnalysis = true - outputFormats = ['XML', 'HTML'] - timestampedReports = true - mutationThreshold = 85 - detectInlinedCode = true - timeoutConstInMillis = 30000 + ]) + timestampedReports.set(true) + mutationThreshold.set(75) } dependencyManagement {