Skip to content

Commit

Permalink
Adding tasks to publish test results to AzurePipelines (#590)
Browse files Browse the repository at this point in the history
* Add tasks to publish results to AzurePipelines

* package.lock Updated

* fix: update test reporter for mocha 6
  • Loading branch information
vagisha-nidhi authored and jimthedev committed Jul 19, 2019
1 parent f5751b2 commit 5f71dfe
Show file tree
Hide file tree
Showing 4 changed files with 1,034 additions and 859 deletions.
12 changes: 11 additions & 1 deletion jobs/build.yml
Expand Up @@ -24,7 +24,17 @@ jobs:
- script: git config --global user.name "Example Git User"
- script: npm install
- script: npm run build
- script: npm test
- script: npm test && npm run write-coverage
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: TestRun ${{ parameters.name }} $(node_version)
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage results'
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: '**/coverage/cobertura-coverage.xml'
- task: PublishBuildArtifacts@1
displayName: Publish packages
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
Expand Down

0 comments on commit 5f71dfe

Please sign in to comment.