mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-18 09:31:47 +03:00
Create Junit reports from karma
This commit is contained in:
parent
04561ea6e6
commit
6069812fcf
3 changed files with 10 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -4,3 +4,6 @@
|
||||||
# version file and tarball created by 'npm pack'
|
# version file and tarball created by 'npm pack'
|
||||||
/git-revision.txt
|
/git-revision.txt
|
||||||
/matrix-react-sdk-*.tgz
|
/matrix-react-sdk-*.tgz
|
||||||
|
|
||||||
|
# test reports created by karma
|
||||||
|
/karma-reports
|
||||||
|
|
|
@ -9,8 +9,7 @@ var path = require('path');
|
||||||
* from node_modules.
|
* from node_modules.
|
||||||
*
|
*
|
||||||
* TODO:
|
* TODO:
|
||||||
* - can we run one test at a time
|
* - can we run one test at a time?
|
||||||
* - write junit out
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
process.env.PHANTOMJS_BIN = 'node_modules/.bin/phantomjs';
|
process.env.PHANTOMJS_BIN = 'node_modules/.bin/phantomjs';
|
||||||
|
@ -43,7 +42,7 @@ module.exports = function (config) {
|
||||||
// test results reporter to use
|
// test results reporter to use
|
||||||
// possible values: 'dots', 'progress'
|
// possible values: 'dots', 'progress'
|
||||||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
||||||
reporters: ['progress'],
|
reporters: ['progress', 'junit'],
|
||||||
|
|
||||||
// web server port
|
// web server port
|
||||||
port: 9876,
|
port: 9876,
|
||||||
|
@ -76,6 +75,10 @@ module.exports = function (config) {
|
||||||
// how many browser should be started simultaneous
|
// how many browser should be started simultaneous
|
||||||
concurrency: Infinity,
|
concurrency: Infinity,
|
||||||
|
|
||||||
|
junitReporter: {
|
||||||
|
outputDir: 'karma-reports',
|
||||||
|
},
|
||||||
|
|
||||||
webpack: {
|
webpack: {
|
||||||
module: {
|
module: {
|
||||||
loaders: [
|
loaders: [
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
"karma": "^0.13.22",
|
"karma": "^0.13.22",
|
||||||
"karma-chrome-launcher": "^0.2.3",
|
"karma-chrome-launcher": "^0.2.3",
|
||||||
"karma-cli": "^0.1.2",
|
"karma-cli": "^0.1.2",
|
||||||
|
"karma-junit-reporter": "^0.4.1",
|
||||||
"karma-mocha": "^0.2.2",
|
"karma-mocha": "^0.2.2",
|
||||||
"karma-phantomjs-launcher": "^1.0.0",
|
"karma-phantomjs-launcher": "^1.0.0",
|
||||||
"karma-sourcemap-loader": "^0.3.7",
|
"karma-sourcemap-loader": "^0.3.7",
|
||||||
|
|
Loading…
Reference in a new issue