Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

Commit

Permalink
added ability to see output from mocha on command line and in xunit file
Browse files Browse the repository at this point in the history
  • Loading branch information
Trisha Moyer committed May 9, 2018
1 parent 56a3c18 commit dd8933c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
6 changes: 6 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"reporterEnabled":"list, xunit-file",
"xunitReporterOptions":{
"output":"xunit.xml"
}
}
22 changes: 16 additions & 6 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"testint": "standard --env mocha && mocha 'test/integration/**/*.js'",
"testintfast": "standard --env mocha && mocha 'test/integration/**/*nobuild*.js'",
"testsdkgen": "standard --env mocha && mocha 'test/sdkgen/**/*.js'",
"mocha": "nyc --reporter=lcov mocha --recursive -R xunit-file",
"mocha": "nyc --reporter=lcov mocha 'test/unit/**/*.js' --reporter mocha-multi-reporters --reporter-options configFile=config.json",
"coverage": "standard --env mocha && nyc mocha --grep @full --invert 'test/unit/**/*.js' 'test/integration/**/*.js'",
"report-coverage": "nyc report --reporter=lcov > coverage.lcov && codecov"
},
Expand Down Expand Up @@ -46,6 +46,7 @@
"mem-fs-editor": "^4.0.0",
"mkdirp": "^0.5.1",
"mocha": "^5.0.0",
"mocha-multi-reporters": "^1.1.7",
"nock": "^9.0.13",
"nyc": "^11.1.0",
"standard": "^10.0.3",
Expand Down

0 comments on commit dd8933c

Please sign in to comment.