From 1cdb51eadbc4919c1a812ee78781a1e58878f291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Fri, 11 Aug 2017 12:01:00 +0200 Subject: [PATCH] Refactored the reporters --- tests/shared/spec/helpers/reporters.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/tests/shared/spec/helpers/reporters.js b/tests/shared/spec/helpers/reporters.js index 3920e991..aa8fadb0 100644 --- a/tests/shared/spec/helpers/reporters.js +++ b/tests/shared/spec/helpers/reporters.js @@ -1,11 +1,19 @@ 'use strict'; -var jasmineReporters = require('jasmine-reporters'); -var junitReporter = new jasmineReporters.JUnitXmlReporter({ +const env = jasmine.getEnv(); + +const jasmineReporters = require('jasmine-reporters'); +const junitReporter = new jasmineReporters.JUnitXmlReporter({ savePath: '.', consolidateAll: false }); -jasmine.getEnv().addReporter(junitReporter); +env.addReporter(junitReporter); -var JasmineConsoleReporter = require('jasmine-console-reporter'); -jasmine.getEnv().addReporter(new JasmineConsoleReporter()); \ No newline at end of file +const JasmineConsoleReporter = require('jasmine-console-reporter'); +const consoleReporter = new JasmineConsoleReporter({ + colors: 2, + cleanStack: 3, + verbosity: 4, + activity: false +}); +env.addReporter(consoleReporter);