Refactored the reporters
This commit is contained in:
parent
128de7e5fc
commit
1cdb51eadb
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue