diff --git a/back/tests.js b/back/tests.js index 50698eb92..b5b5bf361 100644 --- a/back/tests.js +++ b/back/tests.js @@ -18,7 +18,7 @@ const opts = getopts(process.argv.slice(2), { let server; const PARALLEL = false; const SETUP_TIMEOUT = 15 * 60 * 1000; -const SPEC_TIMEOUT = 30 * 1000; +const SPEC_TIMEOUT = 30 * 11000; process.on('exit', teardown); process.on('uncaughtException', onError); @@ -111,7 +111,7 @@ async function test() { const JunitReporter = require('jasmine-reporters'); runner.addReporter(new JunitReporter.JUnitXmlReporter()); } - if (opts.ci) + if (opts.ci || opts.debug) runner.jasmine.DEFAULT_TIMEOUT_INTERVAL = SPEC_TIMEOUT; // runner.loadConfigFile('back/jasmine.json'); diff --git a/package.json b/package.json index 39c5e15b7..72ac563c2 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "yaml-loader": "^0.5.0" }, "scripts": { - "test:back": "nodemon -q back/tests.js --config back/nodemonConfig.json", + "test:back": "nodemon -q back/tests.js --config back/nodemonConfig.json --debug", "test:e2e": "node e2e/tests.js", "test:front": "jest --watch", "back": "nodemon --inspect -w modules ./node_modules/gulp/bin/gulp.js back",