зеркало из https://github.com/Azure/autorest.git
Internal: Publish code coverage to Azure devops (#3947)
This commit is contained in:
Родитель
1894588023
Коммит
e715e9ec33
|
@ -0,0 +1,6 @@
|
|||
reporting:
|
||||
print: summary
|
||||
reports:
|
||||
- cobertura
|
||||
- html
|
||||
dir: ./coverage
|
|
@ -24,6 +24,12 @@ stages:
|
|||
- script: npx @microsoft/rush test:ci -v
|
||||
displayName: Test
|
||||
|
||||
- task: PublishCodeCoverageResults@1
|
||||
inputs:
|
||||
codeCoverageTool: Cobertura
|
||||
summaryFileLocation: $(Build.SourcesDirectory)/packages/**/coverage/cobertura-coverage.xml
|
||||
reportDirectory: $(Build.SourcesDirectory)/packages/**/coverage
|
||||
|
||||
- script: npx @microsoft/rush lint -v
|
||||
displayName: Lint
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ parameters:
|
|||
jobs:
|
||||
- job: ${{ parameters.name }}
|
||||
displayName: Node ${{ parameters.nodeVersion }}
|
||||
variables:
|
||||
autorest.home: $(Agent.SourcesDirectory) # Setting autorest.home to local path to prevent conflict with other parralel jobs in the same machine.
|
||||
steps:
|
||||
- download: current
|
||||
artifact: packages
|
||||
|
@ -40,6 +42,7 @@ jobs:
|
|||
- script: |
|
||||
npm install
|
||||
npm install -g @autorest/compare@~0.3.6
|
||||
node -e "console.log('process env', process.env)"
|
||||
displayName: Install autorest-compare
|
||||
workingDirectory: regression-tests
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ const config = {
|
|||
moduleNameMapper: {},
|
||||
collectCoverage: true,
|
||||
collectCoverageFrom: ["src/**/*.ts", "!**/node_modules/**"],
|
||||
coverageReporters: ["json", "lcov", "cobertura", "text", "html", "clover"],
|
||||
coverageReporters: ["json", "html", "cobertura"],
|
||||
coveragePathIgnorePatterns: ["/node_modules/", ".*/test/.*"],
|
||||
modulePathIgnorePatterns: ["<rootDir>/sdk"],
|
||||
globals: {
|
||||
|
|
Загрузка…
Ссылка в новой задаче