From 33089e6fbdf0713199b343e88dfd15ccfc201c0e Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Thu, 12 Oct 2023 16:25:22 -0700 Subject: [PATCH] build HTML output with cucumber and rspec files in root dir --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f14f88f..091d725 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,10 +26,10 @@ pipeline { stage('Run tests') { steps { catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') { - sh 'cucumber features --format html --out coverage/cucumber.html' + sh 'cucumber features --format html --out cucumber.html' } catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') { - sh 'rspec spec --format html --out coverage/spec.html' + sh 'rspec spec --format html --out spec.html' } } } @@ -40,8 +40,8 @@ pipeline { allowMissing: false, alwaysLinkToLastBuild: false, keepAll: true, - reportDir: 'coverage', - reportFiles: 'cucumber.html, spec.html, index.html', + reportDir: '.', + reportFiles: 'cucumber.html, spec.html, coverage/index.html', reportName: 'Test Results', reportTitles: 'Cucumber Results, RSpec Results, Test Coverage']) }