diff options
author | thuva4 <tharma.thuva@gmail.com> | 2018-04-25 15:19:36 +0530 |
---|---|---|
committer | thuva4 <tharma.thuva@gmail.com> | 2018-04-25 15:19:36 +0530 |
commit | 475a5eae431bd20e1c969ebc084673def22bf300 (patch) | |
tree | d0298b0a8bfff38ccc19f5816130adb30367c81b /testapi/opnfv_testapi/ui/Gruntfile.js | |
parent | df935b524b626e2eea0636d953899cd69b03631b (diff) |
Add task to convert coverage.sjon to coverage.xml
Change-Id: Icc3e175c23d399e33a8406c5aa18d79603d0314b
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi/opnfv_testapi/ui/Gruntfile.js')
-rw-r--r-- | testapi/opnfv_testapi/ui/Gruntfile.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testapi/opnfv_testapi/ui/Gruntfile.js b/testapi/opnfv_testapi/ui/Gruntfile.js index 805ad9f..ab59475 100644 --- a/testapi/opnfv_testapi/ui/Gruntfile.js +++ b/testapi/opnfv_testapi/ui/Gruntfile.js @@ -6,7 +6,22 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-wait'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-connect'); + grunt.loadNpmTasks('grunt-convert'); grunt.initConfig({ + convert: { + options: { + explicitArray: false, + }, + json2xml: { + options: { + xml: { + header: true + } + }, + src: ['../tests/UI/coverage/coverage.json'], + dest: '../tests/UI/coverage/coverage.xml' + } + }, connect: { server: { options: { @@ -159,6 +174,7 @@ module.exports = function (grunt) { 'wait:default', 'protractor_coverage', 'makeReport', + 'convert', 'shell:deleteFiles' ]); } |