forked from adopted-ember-addons/ember-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestem.js
40 lines (33 loc) · 884 Bytes
/
testem.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* jshint node:true */
var fs = require('fs');
var path = require('path');
var existsSync = require('exists-sync');
var mkdirp = require('mkdirp');
var isCI = !!process.env['CI'];
var options = {
"framework": "qunit",
"test_page": "tests/index.html?hidepassed",
"disable_watching": true,
"xunit_intermediate_output": true,
"report_file": "test-results.xml",
"launch_in_ci": [
"Chrome",
"Firefox",
"PhantomJS"
],
"launch_in_dev": [
"Chrome",
"Firefox",
"Safari",
"PhantomJS"
]
};
if (isCI) {
var testReportsPath = path.join(process.env['CIRCLE_TEST_REPORTS'], process.env.SCENARIO_GROUP);
if (!existsSync(testReportsPath)) {
mkdirp.sync(testReportsPath);
}
options['reporter'] = 'xunit';
options['report_file'] = path.join(testReportsPath, process.env.EMBER_TRY_CURRENT_SCENARIO + '.xml');
}
module.exports = options;