From df929c77ce345ed48c560c4b402b2c69fcac1307 Mon Sep 17 00:00:00 2001 From: joan Date: Wed, 5 Oct 2022 13:32:43 +0200 Subject: [PATCH] Test --- back/tests.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/back/tests.js b/back/tests.js index 725aec6e4..e9eaf386e 100644 --- a/back/tests.js +++ b/back/tests.js @@ -41,12 +41,12 @@ async function test() { } })); - // if (isCI) { - // const JunitReporter = require('jasmine-reporters'); - // jasmine.addReporter(new JunitReporter.JUnitXmlReporter()); + if (isCI) { + const JunitReporter = require('jasmine-reporters'); + jasmine.addReporter(new JunitReporter.JUnitXmlReporter()); - // jasmine.jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000; - // } + jasmine.jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000; + } const backSpecs = [ './back/**/*[sS]pec.js', @@ -61,6 +61,8 @@ async function test() { }); if (!isCI) jasmine.exitOnCompletion = false; + else + jasmine.exitOnCompletion = true; await jasmine.execute(); if (app) await app.disconnect();