Refactored the reporters

This commit is contained in:
Kræn Hansen 2017-08-11 12:01:00 +02:00
parent 128de7e5fc
commit 1cdb51eadb
1 changed files with 13 additions and 5 deletions

View File

@ -1,11 +1,19 @@
'use strict'; 'use strict';
var jasmineReporters = require('jasmine-reporters'); const env = jasmine.getEnv();
var junitReporter = new jasmineReporters.JUnitXmlReporter({
const jasmineReporters = require('jasmine-reporters');
const junitReporter = new jasmineReporters.JUnitXmlReporter({
savePath: '.', savePath: '.',
consolidateAll: false consolidateAll: false
}); });
jasmine.getEnv().addReporter(junitReporter); env.addReporter(junitReporter);
var JasmineConsoleReporter = require('jasmine-console-reporter'); const JasmineConsoleReporter = require('jasmine-console-reporter');
jasmine.getEnv().addReporter(new JasmineConsoleReporter()); const consoleReporter = new JasmineConsoleReporter({
colors: 2,
cleanStack: 3,
verbosity: 4,
activity: false
});
env.addReporter(consoleReporter);