mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-04 04:07:16 +02:00
parent
4da4ced95e
commit
25bfc61e95
@ -76,11 +76,6 @@ class PiperPipelineStageAcceptanceTest extends BasePiperTest {
|
||||
stepParameters.uiVeri5ExecuteTests = m
|
||||
})
|
||||
|
||||
helper.registerAllowedMethod('npmExecuteScripts', [Map.class], {m ->
|
||||
stepsCalled.add('npmExecuteScripts')
|
||||
stepParameters.npmExecuteScripts = m
|
||||
})
|
||||
|
||||
helper.registerAllowedMethod('npmExecuteEndToEndTests', [Map.class], {m ->
|
||||
stepsCalled.add('npmExecuteEndToEndTests')
|
||||
stepParameters.npmExecuteEndToEndTests = m
|
||||
@ -99,7 +94,7 @@ class PiperPipelineStageAcceptanceTest extends BasePiperTest {
|
||||
script: nullScript,
|
||||
juStabUtils: utils
|
||||
)
|
||||
assertThat(stepsCalled, not(anyOf(hasItem('cloudFoundryDeploy'), hasItem('neoDeploy'), hasItem('kubernetesDeploy'), hasItem('healthExecuteCheck'), hasItem('newmanExecute'), hasItem('uiVeri5ExecuteTests'), hasItem('npmExecuteScripts'), hasItem('gaugeExecuteTests'))))
|
||||
assertThat(stepsCalled, not(anyOf(hasItem('cloudFoundryDeploy'), hasItem('neoDeploy'), hasItem('kubernetesDeploy'), hasItem('healthExecuteCheck'), hasItem('newmanExecute'), hasItem('uiVeri5ExecuteTests'), hasItem('gaugeExecuteTests'))))
|
||||
|
||||
}
|
||||
|
||||
@ -189,18 +184,6 @@ class PiperPipelineStageAcceptanceTest extends BasePiperTest {
|
||||
assertThat(stepsCalled, hasItems('uiVeri5ExecuteTests', 'testsPublishResults'))
|
||||
}
|
||||
|
||||
@Test
|
||||
void testAcceptanceStageNpmExecuteScripts() {
|
||||
|
||||
jsr.step.piperPipelineStageAcceptance(
|
||||
script: nullScript,
|
||||
juStabUtils: utils,
|
||||
npmExecuteScripts: true
|
||||
)
|
||||
|
||||
assertThat(stepsCalled, hasItem('npmExecuteScripts'))
|
||||
}
|
||||
|
||||
@Test
|
||||
void testAcceptanceNpmExecuteEndToEndTests() {
|
||||
|
||||
|
@ -32,8 +32,6 @@ import static com.sap.piper.Prerequisites.checkScript
|
||||
'testsPublishResults',
|
||||
/** Performs end-to-end UI testing using UIVeri5 test framework against the deployed application/service. */
|
||||
'uiVeri5ExecuteTests',
|
||||
/** Executes npm scripts to run frontend unit tests. */
|
||||
'npmExecuteScripts',
|
||||
/** Executes end to end tests by running the npm script 'ci-e2e' defined in the project's package.json file. */
|
||||
'npmExecuteEndToEndTests'
|
||||
]
|
||||
@ -68,7 +66,6 @@ void call(Map parameters = [:]) {
|
||||
.addIfEmpty('neoDeploy', script.commonPipelineEnvironment.configuration.runStep?.get(stageName)?.neoDeploy)
|
||||
.addIfEmpty('newmanExecute', script.commonPipelineEnvironment.configuration.runStep?.get(stageName)?.newmanExecute)
|
||||
.addIfEmpty('uiVeri5ExecuteTests', script.commonPipelineEnvironment.configuration.runStep?.get(stageName)?.uiVeri5ExecuteTests)
|
||||
.addIfEmpty('npmExecuteScripts', script.commonPipelineEnvironment.configuration.runStep?.get(stageName)?.npmExecuteScripts)
|
||||
.addIfEmpty('npmExecuteEndToEndTests', script.commonPipelineEnvironment.configuration.runStep?.get(stageName)?.npmExecuteEndToEndTests)
|
||||
.use()
|
||||
|
||||
@ -132,13 +129,6 @@ void call(Map parameters = [:]) {
|
||||
}
|
||||
}
|
||||
|
||||
if (config.npmExecuteScripts) {
|
||||
durationMeasure(script: script, measurementName: 'npmExecuteScripts_duration') {
|
||||
publishResults = true
|
||||
npmExecuteScripts script: script
|
||||
}
|
||||
}
|
||||
|
||||
if (config.npmExecuteEndToEndTests) {
|
||||
durationMeasure(script: script, measurementName: 'npmExecuteEndToEndTests_duration') {
|
||||
npmExecuteEndToEndTests script: script, stageName: stageName
|
||||
|
Loading…
Reference in New Issue
Block a user