Skip to content

Commit

Permalink
Introduce XML build output
Browse files Browse the repository at this point in the history
Add Junit-compatible XML build output so that VSTS can process it.
  • Loading branch information
ethomson committed Sep 21, 2018
1 parent 22a7b0c commit 255c098
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.npm
node_modules/
out/
90 changes: 90 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"scripts": {
"start": "node server.js",
"build": "exit 0",
"test": "mocha --timeout 10000"
"test": "mocha --timeout 10000 --reporter mocha-multi-reporters --reporter-options configFile=test/config.json"
},
"keywords": [
"azure",
Expand All @@ -28,6 +28,8 @@
"devDependencies": {
"chai": "^4.1.2",
"mocha": "^5.2.0",
"mocha-junit-reporter": "^1.18.0",
"mocha-multi-reporters": "^1.1.7",
"supertest": "^3.1.0"
}
}
6 changes: 6 additions & 0 deletions test/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"reporterEnabled": "spec,mocha-junit-reporter",
"mochaJunitReporterReporterOptions": {
"mochaFile": "./out/test-results.xml"
}
}

0 comments on commit 255c098

Please sign in to comment.