Changeset View
Changeset View
Standalone View
Standalone View
jobs/templates/includes/stage-cypress-tests.groovy.j2
Show All 31 Lines | stage ('Run cypress tests') { | ||||
allowEmptyResults: true, | allowEmptyResults: true, | ||||
testResults: 'cypress/junit/results/*.xml', | testResults: 'cypress/junit/results/*.xml', | ||||
) | ) | ||||
sh ''' | sh ''' | ||||
yarn run mochawesome || true | yarn run mochawesome || true | ||||
yarn run nyc report --reporter=lcov || true | yarn run nyc report --reporter=lcov || true | ||||
yarn run nyc report --reporter=cobertura || true | yarn run nyc report --reporter=cobertura || true | ||||
rm -rf node_modules | |||||
''' | ''' | ||||
publishHTML (target: [ | publishHTML (target: [ | ||||
allowMissing: true, | allowMissing: true, | ||||
alwaysLinkToLastBuild: false, | alwaysLinkToLastBuild: false, | ||||
keepAll: true, | keepAll: true, | ||||
reportDir: 'cypress/mochawesome/report', | reportDir: 'cypress/mochawesome/report', | ||||
reportFiles: 'mochawesome.html', | reportFiles: 'mochawesome.html', | ||||
Show All 24 Lines |