mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Improve CircleCI test results
This commit is contained in:
@@ -170,9 +170,13 @@ jobs:
|
||||
fi
|
||||
- run:
|
||||
name: Test
|
||||
environment:
|
||||
MOCHA_FILE: junit/test-results.xml
|
||||
MOCHA_REPORTER: mocha-junit-reporter
|
||||
command: |
|
||||
if [ "$ELECTRON_RELEASE" != "1" ]; then
|
||||
echo 'Testing Electron debug build'
|
||||
mkdir junit
|
||||
script/test.py --ci --rebuild_native_modules
|
||||
else
|
||||
echo 'Skipping testing on release build'
|
||||
@@ -186,6 +190,10 @@ jobs:
|
||||
else
|
||||
echo 'Skipping verify ffmpeg on release build'
|
||||
fi
|
||||
- store_test_results:
|
||||
path: junit
|
||||
- store_artifacts:
|
||||
path: junit
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
"graceful-fs": "^4.1.9",
|
||||
"mkdirp": "^0.5.1",
|
||||
"mocha": "^3.1.0",
|
||||
"mocha-junit-reporter": "^1.14.0",
|
||||
"multiparty": "^4.1.3",
|
||||
"q": "^1.4.1",
|
||||
"send": "^0.14.1",
|
||||
|
||||
@@ -51,10 +51,15 @@
|
||||
var Coverage = require('electabul').Coverage;
|
||||
|
||||
var Mocha = require('mocha');
|
||||
var mochaOpts = {};
|
||||
if (process.env.MOCHA_REPORTER) {
|
||||
mochaOpts.reporter = process.env.MOCHA_REPORTER;
|
||||
}
|
||||
var mocha = new Mocha(mochaOpts);
|
||||
|
||||
var mocha = new Mocha();
|
||||
|
||||
mocha.ui('bdd').reporter(isCi ? 'tap' : 'html');
|
||||
if (!process.env.MOCHA_REPORTER) {
|
||||
mocha.ui('bdd').reporter(isCi ? 'tap' : 'html');
|
||||
}
|
||||
mocha.timeout(isCi ? 30000 : 10000)
|
||||
|
||||
var query = Mocha.utils.parseQuery(window.location.search || '');
|
||||
|
||||
Reference in New Issue
Block a user