Make WebUI unit tests to generate results as JUnit

Now WebUI unit tests are generating results in qunit format which
is not consumable well by Jenkins.

This patch adds NPM dependency for adding generation results in
JUnit XML format so it can be easily processed.

Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Alexey Slaykovsky authored and Christian Heimes committed 2018-03-16 14:26:48 +01:00
1 parent 69599560c1
commit c450e2dc8f
3 files changed
+8 -2

No files matched your search

+5
View File
@@ -1,5 +1,8 @@
module.exports = function(grunt) {
grunt.initConfig({
qunit_junit: {
options: {}
},
qunit: {
all: [
'test/all_tests.html'
@@ -7,5 +10,7 @@ module.exports = function(grunt) {
}
});
grunt.loadNpmTasks('grunt-qunit-junit');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.registerTask('test', ['qunit_junit', 'qunit']);
};
+2 -1
View File
@@ -42,7 +42,8 @@
},
"devDependencies": {
"grunt": "^1.0.1",
"grunt-contrib-qunit": "^2.0.0"
"grunt-contrib-qunit": "^2.0.0",
"grunt-qunit-junit": "^0.3.1"
},
"dependencies": {
"dojo": "~1.8.1"