fix: refs#6706 E2E show parameter fix
This commit is contained in:
parent
4f9b46346f
commit
999d9a0f9c
|
@ -10,7 +10,7 @@ const Myt = require('@verdnatura/myt/myt');
|
||||||
const Run = require('@verdnatura/myt/myt-run');
|
const Run = require('@verdnatura/myt/myt-run');
|
||||||
|
|
||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
const e2eConfig = require('./config.js');
|
const e2eConfig = require('./helpers/config.js');
|
||||||
const log = require('fancy-log');
|
const log = require('fancy-log');
|
||||||
|
|
||||||
process.on('warning', warning => {
|
process.on('warning', warning => {
|
||||||
|
@ -23,11 +23,12 @@ async function test() {
|
||||||
const opts = getopts(process.argv.slice(2), {
|
const opts = getopts(process.argv.slice(2), {
|
||||||
boolean: ['show']
|
boolean: ['show']
|
||||||
});
|
});
|
||||||
process.env.E2E_SHOW = opts.show;
|
if (opts.show)
|
||||||
|
process.env.E2E_SHOW = true;
|
||||||
|
|
||||||
console.log('Building and running DB container.');
|
console.log('Building and running DB container.');
|
||||||
const myt = new Myt();
|
const myt = new Myt();
|
||||||
await myt.init({workspace: path.join(__dirname, '../..')});
|
await myt.init({workspace: path.join(__dirname, '..')});
|
||||||
await myt.run(Run);
|
await myt.run(Run);
|
||||||
await myt.deinit();
|
await myt.deinit();
|
||||||
|
|
|
@ -108,7 +108,7 @@
|
||||||
"dbtest": "nodemon -q db/tests.js -w db/tests",
|
"dbtest": "nodemon -q db/tests.js -w db/tests",
|
||||||
"test:back": "nodemon -q back/tests.js --config back/nodemonConfig.json",
|
"test:back": "nodemon -q back/tests.js --config back/nodemonConfig.json",
|
||||||
"test:back:ci": "node back/tests.js --ci --junit --network jenkins",
|
"test:back:ci": "node back/tests.js --ci --junit --network jenkins",
|
||||||
"test:e2e": "node e2e/helpers/tests.js",
|
"test:e2e": "node e2e/tests.js",
|
||||||
"test:front": "jest --watch",
|
"test:front": "jest --watch",
|
||||||
"back": "nodemon --inspect -w modules ./node_modules/gulp/bin/gulp.js back",
|
"back": "nodemon --inspect -w modules ./node_modules/gulp/bin/gulp.js back",
|
||||||
"lint": "eslint ./ --cache --ignore-pattern .gitignore",
|
"lint": "eslint ./ --cache --ignore-pattern .gitignore",
|
||||||
|
|
Loading…
Reference in New Issue