cleaned up integration test flow
This commit is contained in:
parent
23d629b80b
commit
76de2b29a5
20 changed files with 123 additions and 1798 deletions
|
@ -1,6 +1,10 @@
|
|||
const path = require('path');
|
||||
const tmp = require('tmp');
|
||||
const tmpDir = tmp.dirSync({ mode: '0777', prefix: 'integrationTestsTmpDir-' });
|
||||
const mkdirp = require('mkdirp');
|
||||
const rimraf = require('rimraf');
|
||||
const dir = path.join(__dirname, 'integration', 'downloads');
|
||||
|
||||
mkdirp.sync(dir);
|
||||
rimraf.sync(`${dir}${path.sep}*`);
|
||||
|
||||
exports.config = {
|
||||
specs: [path.join(__dirname, './integration/**/*-tests.js')],
|
||||
|
@ -16,7 +20,7 @@ exports.config = {
|
|||
'browser.helperApps.neverAsk.openFile': 'text/plain',
|
||||
'browser.helperApps.neverAsk.saveToDisk': 'text/plain',
|
||||
'browser.download.folderList': 2,
|
||||
'browser.download.dir': `${tmpDir.name}`
|
||||
'browser.download.dir': dir
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -29,7 +33,7 @@ exports.config = {
|
|||
deprecationWarnings: true,
|
||||
bail: 0,
|
||||
screenshotOnReject: false,
|
||||
baseUrl: 'http://localhost:8080',
|
||||
baseUrl: 'http://localhost:8000',
|
||||
waitforTimeout: 20000,
|
||||
connectionRetryTimeout: 90000,
|
||||
connectionRetryCount: 3,
|
||||
|
@ -39,7 +43,6 @@ exports.config = {
|
|||
mochaOpts: {
|
||||
ui: 'bdd',
|
||||
timeout: 30000,
|
||||
compilers: ['js:babel-register'],
|
||||
retries: 1
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue