From 9e0f411582bbde0ab43a19f9ccb6f3c9f9e2cad0 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Tue, 17 May 2016 15:14:02 +0200 Subject: [PATCH] report by browser --- conf.e2e.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/conf.e2e.js b/conf.e2e.js index eb0ad698..54d04d11 100644 --- a/conf.e2e.js +++ b/conf.e2e.js @@ -152,8 +152,16 @@ if (argv.json) { var suites = argv.suite.split(',').join('-'); + var reportFileName = 'report-' + suites + '-chrome.json'; + + if (argv.firefox) { + reportFileName = 'report-' + suites + '-firefox.json'; + } else if (argv.ie) { + reportFileName = 'report-' + suites + '-ie.json'; + } + process.env['MOCHA_REPORTER'] = 'JSON'; - process.env['MOCHA_REPORTER_FILE'] = 'e2e/reports/report-' + suites +'.json'; + process.env['MOCHA_REPORTER_FILE'] = 'e2e/reports/' + reportFileName; config.mochaOpts.reporter = 'reporter-file'; }