diff --git a/config.json b/config.json new file mode 100644 index 00000000..e72d27a2 --- /dev/null +++ b/config.json @@ -0,0 +1,6 @@ +{ + "reporterEnabled":"list, xunit-file", + "xunitReporterOptions":{ + "output":"xunit.xml" + } +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index a359eba2..24187ba2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2079,9 +2079,9 @@ } }, "generator-ibm-cloud-enablement": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/generator-ibm-cloud-enablement/-/generator-ibm-cloud-enablement-0.12.0.tgz", - "integrity": "sha512-qKlz5vWPwLMc47uZJGooookIPDgqTwyEHxvJSdnRQIaJa/yuVG0IG7nOhruF3QWLpEMLPQBInYn3BFEDUvj8cg==", + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/generator-ibm-cloud-enablement/-/generator-ibm-cloud-enablement-0.14.0.tgz", + "integrity": "sha512-mdc02/4yqhNegfKUYp3YqhsB2e6LZ6c0DEskwBii1SmG45SiXYPArbVZ+9ZE2UShMROr2gTU38ypfDFqefV9wg==", "requires": { "fs-extra": "2.1.2", "handlebars": "4.0.11", @@ -2091,9 +2091,9 @@ } }, "generator-ibm-service-enablement": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/generator-ibm-service-enablement/-/generator-ibm-service-enablement-0.11.0.tgz", - "integrity": "sha512-ieHDtvgNh4KrPKK3gLuQwMmjMCgvtvAX0OND9QvQm9lmfjMjeiBAvLz5mENl5liGT4flxNJbTigOpVYty5E4Cw==", + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/generator-ibm-service-enablement/-/generator-ibm-service-enablement-1.1.7.tgz", + "integrity": "sha512-ZWSfPvlwnfTAzYUTWGTw5hoi1qrw2+nH5uXLl68CYT34DX0TScIdTEWCc2kB5LPTvzQTmMtgkE1q60h9HBHkpQ==", "requires": { "handlebars": "4.0.11", "lodash": "4.17.4", @@ -3463,6 +3463,16 @@ } } }, + "mocha-multi-reporters": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/mocha-multi-reporters/-/mocha-multi-reporters-1.1.7.tgz", + "integrity": "sha1-zH8/TTL0eFIJQdhSq7ZNmYhYfYI=", + "dev": true, + "requires": { + "debug": "3.1.0", + "lodash": "4.17.4" + } + }, "modify-values": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/modify-values/-/modify-values-1.0.0.tgz", diff --git a/package.json b/package.json index 2f074728..035de95f 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "testint": "standard --env mocha && mocha 'test/integration/**/*.js'", "testintfast": "standard --env mocha && mocha 'test/integration/**/*nobuild*.js'", "testsdkgen": "standard --env mocha && mocha 'test/sdkgen/**/*.js'", - "mocha": "nyc --reporter=lcov mocha --recursive -R xunit-file", + "mocha": "nyc --reporter=lcov mocha 'test/unit/**/*.js' --reporter mocha-multi-reporters --reporter-options configFile=config.json", "coverage": "standard --env mocha && nyc mocha --grep @full --invert 'test/unit/**/*.js' 'test/integration/**/*.js'", "report-coverage": "nyc report --reporter=lcov > coverage.lcov && codecov" }, @@ -46,6 +46,7 @@ "mem-fs-editor": "^4.0.0", "mkdirp": "^0.5.1", "mocha": "^5.0.0", + "mocha-multi-reporters": "^1.1.7", "nock": "^9.0.13", "nyc": "^11.1.0", "standard": "^10.0.3",