GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Publish test results from Azure Pipelines builds · webpack/webpack@1b23c1e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • azure-pipelines.yml
  • package.json
  • yarn.lock
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎azure-pipelines.yml‎

Copy file name to clipboardExpand all lines: azure-pipelines.yml
+55-13Lines changed: 55 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ jobs:
44
vmImage: ubuntu-16.04
55
steps:
66
- task: NodeTool@0
7-
displayName: "Install Node.js"
87
inputs:
98
versionSpec: "^10.10.0"
9+
displayName: "Install Node.js"
1010
- script: |
1111
curl -o- -L https://yarnpkg.com/install.sh | bash
1212
displayName: "Install Yarn"
@@ -26,17 +26,32 @@ jobs:
2626
- script: |
2727
set -e
2828
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
29-
yarn test:basic --ci
30-
yarn test:unit --ci
29+
export JEST_JUNIT_OUTPUT=./basic-junit.xml
30+
yarn test:basic --ci --reporters=jest-junit
31+
export JEST_JUNIT_OUTPUT=./unit-junit.xml
32+
yarn test:unit --ci --reporters=jest-junit
3133
displayName: "Run basic tests"
34+
- task: PublishTestResults@2
35+
inputs:
36+
testRunTitle: "basic"
37+
testResultsFiles: "**/basic-junit.xml"
38+
condition: succeededOrFailed()
39+
displayName: "Publish basic test results"
40+
- task: PublishTestResults@2
41+
inputs:
42+
testRunTitle: "unit"
43+
testResultsFiles: "**/unit-junit.xml"
44+
condition: succeededOrFailed()
45+
displayName: "Publish unit test results"
46+
3247
- job: lint
3348
pool:
3449
vmImage: ubuntu-16.04
3550
steps:
3651
- task: NodeTool@0
37-
displayName: "Install Node.js"
3852
inputs:
3953
versionSpec: "^10.10.0"
54+
displayName: "Install Node.js"
4055
- script: |
4156
curl -o- -L https://yarnpkg.com/install.sh | bash
4257
displayName: "Install Yarn"
@@ -58,7 +73,14 @@ jobs:
5873
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
5974
yarn lint
6075
displayName: "Run linting"
61-
- job: linux
76+
- task: PublishTestResults@2
77+
inputs:
78+
testRunTitle: "lint"
79+
testResultsFiles: "**/junit.xml"
80+
condition: succeededOrFailed()
81+
displayName: "Publish lint results"
82+
83+
- job: Linux
6284
dependsOn:
6385
- basic
6486
- lint
@@ -75,9 +97,9 @@ jobs:
7597
node_version: ^6.14.4
7698
steps:
7799
- task: NodeTool@0
78-
displayName: "Install Node.js"
79100
inputs:
80101
versionSpec: $(node_version)
102+
displayName: "Install Node.js $(node_version)"
81103
- script: |
82104
curl -o- -L https://yarnpkg.com/install.sh | bash
83105
displayName: "Install Yarn"
@@ -98,9 +120,16 @@ jobs:
98120
set -e
99121
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
100122
yarn cover:init
101-
yarn cover:integration --ci --maxWorkers=2
123+
yarn cover:integration --ci --maxWorkers=2 --reporters=jest-junit
102124
displayName: "Run tests with coverage"
103-
- job: macos
125+
- task: PublishTestResults@2
126+
inputs:
127+
testRunTitle: "Linux with Node.js $(node_version)"
128+
testResultsFiles: "**/junit.xml"
129+
condition: succeededOrFailed()
130+
displayName: "Publish test results"
131+
132+
- job: macOS
104133
dependsOn:
105134
- basic
106135
- lint
@@ -117,9 +146,9 @@ jobs:
117146
node_version: ^6.14.4
118147
steps:
119148
- task: NodeTool@0
120-
displayName: "Install Node.js"
121149
inputs:
122150
versionSpec: $(node_version)
151+
displayName: "Install Node.js $(node_version)"
123152
- script: |
124153
curl -o- -L https://yarnpkg.com/install.sh | bash
125154
displayName: "Install Yarn"
@@ -140,9 +169,16 @@ jobs:
140169
set -e
141170
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
142171
yarn cover:init
143-
yarn cover:integration --ci
172+
yarn cover:integration --ci --reporters=jest-junit
144173
displayName: "Run tests with coverage"
145-
- job: windows
174+
- task: PublishTestResults@2
175+
inputs:
176+
testRunTitle: "macOS with Node.js $(node_version)"
177+
testResultsFiles: "**/junit.xml"
178+
condition: succeededOrFailed()
179+
displayName: "Publish test results"
180+
181+
- job: Windows
146182
dependsOn:
147183
- basic
148184
- lint
@@ -159,9 +195,9 @@ jobs:
159195
node_version: ^6.14.4
160196
steps:
161197
- task: NodeTool@0
162-
displayName: "Install Node.js"
163198
inputs:
164199
versionSpec: $(node_version)
200+
displayName: "Install Node.js $(node_version)"
165201
- script: |
166202
npm install --global yarn
167203
displayName: "Install Yarn"
@@ -178,5 +214,11 @@ jobs:
178214
displayName: "Install dependencies"
179215
- script: |
180216
set -e
181-
yarn cover:init && yarn cover:integration --ci --maxWorkers=2
217+
yarn cover:init && yarn cover:integration --ci --maxWorkers=2 --reporters=jest-junit
182218
displayName: "Run tests with coverage"
219+
- task: PublishTestResults@2
220+
inputs:
221+
testRunTitle: "Windows with Node.js $(node_version)"
222+
testResultsFiles: "**/junit.xml"
223+
condition: succeededOrFailed()
224+
displayName: "Publish test results"
Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"jade": "^1.11.0",
5757
"jade-loader": "~0.8.0",
5858
"jest": "24.0.0-alpha.1",
59+
"jest-junit": "^5.2.0",
5960
"json-loader": "^0.5.7",
6061
"json-schema-to-typescript": "^6.0.1",
6162
"less": "^2.5.1",
@@ -120,7 +121,7 @@
120121
"pretest": "yarn lint",
121122
"prelint": "yarn setup",
122123
"lint": "yarn code-lint && yarn schema-lint && yarn type-lint && yarn special-lint",
123-
"code-lint": "eslint --cache \"{setup,lib,bin,hot,buildin,benchmark,tooling,schemas}/**/*.js\" \"test/*.js\" \"test/{configCases,watchCases,statsCases,hotCases}/**/webpack.config.js\" \"examples/**/webpack.config.js\"",
124+
"code-lint": "eslint --format junit --cache \"{setup,lib,bin,hot,buildin,benchmark,tooling,schemas}/**/*.js\" \"test/*.js\" \"test/{configCases,watchCases,statsCases,hotCases}/**/webpack.config.js\" \"examples/**/webpack.config.js\" > junit.xml",
124125
"type-lint": "tsc --pretty",
125126
"special-lint": "node tooling/inherit-types && node tooling/format-schemas && node tooling/compile-to-definitions",
126127
"special-lint-fix": "node tooling/inherit-types --write --override && node tooling/format-schemas --write && node tooling/compile-to-definitions --write",

0 commit comments

Comments
0 (0)
You are visitor 01402622 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.