Skip to content

Commit 7d65377

Browse files
committed
chore: add karma-junit-reporter to profile performance
1 parent f8e98eb commit 7d65377

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
bower_components/
22
node_modules/
33
coverage/
4+
junit/
45
dist/
56
out/

gruntFile.js

+10
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = function(grunt) {
1111
grunt.registerTask('serve', ['karma:continuous', 'dist', 'build:gh-pages', 'connect:continuous', 'watch']);
1212
grunt.registerTask('dist', ['ngmin', 'surround', 'uglify' ]);
1313
grunt.registerTask('coverage', ['jshint', 'karma:coverage']);
14+
grunt.registerTask('junit', ['jshint', 'karma:junit']);
1415

1516

1617
// HACK TO ACCESS TO THE COMPONENT PUBLISHER
@@ -80,6 +81,15 @@ module.exports = function(grunt) {
8081
dir : 'coverage/'
8182
},
8283
singleRun: true
84+
},
85+
junit: {
86+
configFile: 'test/karma.conf.js',
87+
reporters: ['progress', 'junit'],
88+
junitReporter: {
89+
outputFile: 'junit/unit.xml',
90+
suite: 'unit'
91+
},
92+
singleRun: true
8393
}
8494
},
8595

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,21 @@
1111
"angular-ui-publisher": "1.2.x",
1212
"grunt": "~0.4.x",
1313
"grunt-contrib-connect": "0.5.x",
14-
"grunt-surround": "0.1.x",
1514
"grunt-contrib-jshint": "0.8.x",
1615
"grunt-contrib-uglify": "0.2.x",
1716
"grunt-contrib-watch": "0.5.x",
1817
"grunt-conventional-changelog": "~1.0.0",
1918
"grunt-karma": "0.6.x",
2019
"grunt-ngmin": "0.0.x",
20+
"grunt-surround": "0.1.x",
2121
"karma": "0.10.x",
2222
"karma-chrome-launcher": "0.1.x",
2323
"karma-coffee-preprocessor": "0.1.x",
2424
"karma-coverage": "~0.1",
2525
"karma-firefox-launcher": "0.1.x",
2626
"karma-html2js-preprocessor": "0.1.x",
2727
"karma-jasmine": "0.1.x",
28+
"karma-junit-reporter": "0.2.x",
2829
"karma-phantomjs-launcher": "0.1.x",
2930
"karma-requirejs": "0.2.x",
3031
"karma-script-launcher": "0.1.x",

0 commit comments

Comments
 (0)