Sleep
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
35a579f06b
commit
490b5fc6df
|
@ -25,39 +25,41 @@ async function test() {
|
||||||
|
|
||||||
const bootOptions = {dataSources};
|
const bootOptions = {dataSources};
|
||||||
const app = require('vn-loopback/server/server');
|
const app = require('vn-loopback/server/server');
|
||||||
app.boot(bootOptions, async() => {
|
app.boot(bootOptions);
|
||||||
const Jasmine = require('jasmine');
|
|
||||||
const jasmine = new Jasmine();
|
|
||||||
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
|
|
||||||
|
|
||||||
const backSpecs = [
|
await new Promise(resolve => setTimeout(resolve, 5000));
|
||||||
'./back/**/*[sS]pec.js',
|
|
||||||
'./loopback/**/*[sS]pec.js',
|
|
||||||
'./modules/*/back/**/*.[sS]pec.js'
|
|
||||||
];
|
|
||||||
|
|
||||||
jasmine.loadConfig({
|
const Jasmine = require('jasmine');
|
||||||
spec_dir: '.',
|
const jasmine = new Jasmine();
|
||||||
spec_files: backSpecs,
|
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
|
||||||
helpers: []
|
|
||||||
});
|
|
||||||
|
|
||||||
jasmine.addReporter(new SpecReporter({
|
const backSpecs = [
|
||||||
spec: {
|
'./back/**/*[sS]pec.js',
|
||||||
displaySuccessful: isCI,
|
'./loopback/**/*[sS]pec.js',
|
||||||
displayPending: isCI
|
'./modules/*/back/**/*.[sS]pec.js'
|
||||||
},
|
];
|
||||||
summary: {
|
|
||||||
displayPending: false,
|
|
||||||
}
|
|
||||||
}));
|
|
||||||
|
|
||||||
jasmine.exitOnCompletion = false;
|
jasmine.loadConfig({
|
||||||
await jasmine.execute();
|
spec_dir: '.',
|
||||||
if (app) await app.disconnect();
|
spec_files: backSpecs,
|
||||||
if (container) await container.rm();
|
helpers: []
|
||||||
console.log('app disconnected & container removed');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
jasmine.addReporter(new SpecReporter({
|
||||||
|
spec: {
|
||||||
|
displaySuccessful: isCI,
|
||||||
|
displayPending: isCI
|
||||||
|
},
|
||||||
|
summary: {
|
||||||
|
displayPending: false,
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
|
||||||
|
jasmine.exitOnCompletion = false;
|
||||||
|
await jasmine.execute();
|
||||||
|
if (app) await app.disconnect();
|
||||||
|
if (container) await container.rm();
|
||||||
|
console.log('app disconnected & container removed');
|
||||||
}
|
}
|
||||||
|
|
||||||
test();
|
test();
|
||||||
|
|
Loading…
Reference in New Issue