-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathboot.ts
44 lines (35 loc) · 1.15 KB
/
boot.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import {BeachDayReporter} from './src';
var Jasmine = require('jasmine');
var SpecReporter = require('jasmine-spec-reporter').SpecReporter;
var jasmineInst = new Jasmine();
global['jasmine'].DEFAULT_TIMEOUT_INTERVAL = 5000;
console.log('Setting up new default JASMINE Suite :)');
console.log('----------------------------------------------------');
// Disable default reporter
jasmineInst.configureDefaultReporter({
print: function () {
}
});
// Add a basic reporter for the console :)
jasmineInst.addReporter(new SpecReporter({
displayStacktrace : 'all',
displayPendingSummary: false,
displayPendingSpec : false
}));
// Add our custom HTML reporter
jasmineInst.addReporter(new BeachDayReporter({
logToConsole : true,
includeAllConsoleLogs: false,
maxTestTime : 2000
}));
const config = {
spec_dir : '',
spec_files : [
'dist/src/**/*.spec.js'
],
helpers : [],
stopSpecOnExpectationFailure: false,
random : false
};
jasmineInst.loadConfig(config);
jasmineInst.execute();