allowed both spec reporters for CI
gitea/salix/pipeline/head Something is wrong with the build of this commit
Details
gitea/salix/pipeline/head Something is wrong with the build of this commit
Details
This commit is contained in:
parent
d4fab02252
commit
42270bf61b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue