jasmine reporters are now added using addReporter
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
8b95150437
commit
ddc3b552d7
|
@ -27,8 +27,11 @@ async function test() {
|
|||
const app = require('vn-loopback/server/server');
|
||||
app.boot(bootOptions);
|
||||
|
||||
const Jasmine = require('jasmine');
|
||||
const jasmine = new Jasmine();
|
||||
|
||||
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
|
||||
const specReporter = new SpecReporter({
|
||||
jasmine.addReporter(new SpecReporter({
|
||||
spec: {
|
||||
displaySuccessful: isCI,
|
||||
displayPending: isCI
|
||||
|
@ -36,23 +39,15 @@ async function test() {
|
|||
summary: {
|
||||
displayPending: false,
|
||||
}
|
||||
});
|
||||
|
||||
const reporters = [specReporter];
|
||||
}));
|
||||
|
||||
if (isCI) {
|
||||
const JunitReporter = require('jasmine-reporters');
|
||||
const junitReporter = new JunitReporter.JUnitXmlReporter();
|
||||
reporters.push(junitReporter);
|
||||
jasmine.addReporter(new JunitReporter.JUnitXmlReporter());
|
||||
|
||||
jasmine.jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
|
||||
}
|
||||
|
||||
const Jasmine = require('jasmine');
|
||||
const jasmine = new Jasmine({
|
||||
reporter: reporters
|
||||
});
|
||||
|
||||
if (isCI) jasmine.jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
|
||||
|
||||
const backSpecs = [
|
||||
'./back/**/*[sS]pec.js',
|
||||
'./loopback/**/*[sS]pec.js',
|
||||
|
|
Loading…
Reference in New Issue