2019-04-03 19:50:00 +00:00
|
|
|
const config = {
|
2018-06-14 13:43:38 +00:00
|
|
|
framework: 'qunit',
|
|
|
|
test_page: 'tests/index.html?hidepassed',
|
|
|
|
tap_quiet_logs: true,
|
|
|
|
disable_watching: true,
|
|
|
|
launch_in_ci: ['Chrome'],
|
2018-05-08 15:43:20 +00:00
|
|
|
browser_args: {
|
|
|
|
Chrome: {
|
2018-09-25 16:28:26 +00:00
|
|
|
ci: [
|
2018-05-08 15:43:20 +00:00
|
|
|
// --no-sandbox is needed when running Chrome inside a container
|
2018-09-25 16:28:26 +00:00
|
|
|
process.env.CI ? '--no-sandbox' : null,
|
2018-05-08 15:43:20 +00:00
|
|
|
'--headless',
|
2018-09-25 16:28:26 +00:00
|
|
|
'--disable-gpu',
|
|
|
|
'--disable-software-rasterizer',
|
|
|
|
'--mute-audio',
|
2018-05-08 15:43:20 +00:00
|
|
|
'--remote-debugging-port=0',
|
2018-06-14 13:43:38 +00:00
|
|
|
'--window-size=1440,900',
|
|
|
|
].filter(Boolean),
|
|
|
|
},
|
2018-05-08 15:43:20 +00:00
|
|
|
},
|
2018-04-03 14:16:57 +00:00
|
|
|
proxies: {
|
2018-06-14 13:43:38 +00:00
|
|
|
'/v1': {
|
|
|
|
target: 'http://localhost:9200',
|
|
|
|
},
|
2018-05-08 15:43:20 +00:00
|
|
|
},
|
2018-04-03 14:16:57 +00:00
|
|
|
};
|
2019-04-03 19:50:00 +00:00
|
|
|
|
|
|
|
if (process.env.CI) {
|
|
|
|
config.reporter = 'xunit';
|
2019-05-03 23:05:10 +00:00
|
|
|
config.report_file = 'test-results/qunit/results.xml';
|
2019-04-03 19:50:00 +00:00
|
|
|
config.xunit_intermediate_output = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = config;
|