Add karma-subunit-reporter

This adds a new karma plugin, 'karma-subunit-reporter', to generate
subunit streams for unit test output. These files should be compatible
with stackviz itself (via stackviz-export) and other tools like
subunit2sql and openstack-health.

Change-Id: I8ee5425e1688fa090d5dc9fe3021345e779e2c07
This commit is contained in:
Tim Buckley 2016-05-28 15:47:39 -06:00
parent 28caae17d6
commit 5c37303ca3
3 changed files with 8 additions and 1 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@ build
app/js/templates.js
app/data
*.py[cod]
karma.subunit
# C extensions
*.so

View File

@ -50,6 +50,7 @@
"karma-chrome-launcher": "0.2.3",
"karma-coverage": "0.5.5",
"karma-jasmine": "0.3.8",
"karma-subunit-reporter": "0.0.4",
"morgan": "1.7.0",
"nprogress": "^0.2.0",
"pretty-hrtime": "1.0.2",

View File

@ -13,7 +13,7 @@ module.exports = function(config) {
'app/js/**/*.js': ['browserify', 'coverage']
},
browsers: ['Chrome'],
reporters: ['progress'],
reporters: ['progress', 'subunit'],
autoWatch: true,
singleRun: true,
@ -29,6 +29,11 @@ module.exports = function(config) {
]
},
subunitReporter: {
slug: true,
tags: ['worker-0']
},
proxies: {
'/': 'http://localhost:9876/'
},