allowed both spec reporters for CI
gitea/salix/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Carlos Jimenez Ruiz 2022-05-13 12:33:08 +02:00
parent d4fab02252
commit 42270bf61b
1 changed files with 7 additions and 6 deletions

View File

@ -28,7 +28,10 @@ async function test() {
app.boot(bootOptions);
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
let reporter = new SpecReporter({
const reporters = [];
reporters.push(new SpecReporter({
spec: {
displaySuccessful: isCI,
displayPending: isCI
@ -36,18 +39,16 @@ async function test() {
summary: {
displayPending: false,
}
});
}));
if (isCI) {
const reporters = require('jasmine-reporters');
reporter = new reporters.JUnitXmlReporter();
reporters.push(new reporters.JUnitXmlReporter());
}
const Jasmine = require('jasmine');
const jasmine = new Jasmine({
reporter: [
reporter
]
reporter: reporters
});
if (isCI) jasmine.jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;