New project structure
Beta of extract.js for extracting english locale
This commit is contained in:
parent
e18d2b2f84
commit
2edbd67205
247 changed files with 6405 additions and 4237 deletions
28
server/test/e2e/index.js
Normal file
28
server/test/e2e/index.js
Normal file
|
@ -0,0 +1,28 @@
|
|||
'use strict';
|
||||
|
||||
require('./lib/exit-unless-test');
|
||||
const mocha = require('./lib/mocha-e2e').mocha;
|
||||
const path = require('path');
|
||||
|
||||
const only = 'only';
|
||||
const skip = 'skip';
|
||||
|
||||
let tests = [
|
||||
//'login',
|
||||
'subscription'
|
||||
];
|
||||
|
||||
tests = tests.map(testSpec => (testSpec.constructor === Array ? testSpec : [testSpec]));
|
||||
tests = tests.filter(testSpec => testSpec[1] !== skip);
|
||||
if (tests.some(testSpec => testSpec[1] === only)) {
|
||||
tests = tests.filter(testSpec => testSpec[1] === only);
|
||||
}
|
||||
|
||||
for (const testSpec of tests) {
|
||||
const testPath = path.join(__dirname, 'tests', testSpec[0] + '.js');
|
||||
mocha.addFile(testPath);
|
||||
}
|
||||
|
||||
mocha.run(failures => {
|
||||
process.exit(failures); // exit with non-zero status if there were failures
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue