-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathboot.js
30 lines (23 loc) · 1.12 KB
/
boot.js
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
// Import the required dependencies for the booting of jasmine
var BeachDayReporter = require("beach-day").BeachDayReporter;
var Jasmine = require("jasmine");
var SpecReporter = require("jasmine-spec-reporter").SpecReporter;
// Create a new instance of the jasmine framework
var jasmineInst = new Jasmine();
// Setup sensible timeout amount for the jasmine tests
// We don't want our jasmine tests to timeout before an http call has been completed
global["jasmine"].DEFAULT_TIMEOUT_INTERVAL = 10000; // milliseconds
// Disable default jasmine reporter
jasmineInst.configureDefaultReporter({ print: function () { } });
// Add the spec reporter for console reporting
// https://github.com/bcaudan/jasmine-spec-reporter
jasmineInst.addReporter(new SpecReporter({
displayStacktrace: "all"
}));
// Add an instance of the beach-day custom HTML reporter
// All the default config is used
jasmineInst.addReporter(new BeachDayReporter());
// Load up a jasmine config for the test environment
jasmineInst.loadConfigFile("jasmine_config.json");
// Run the jasmine instance to start all tests
jasmineInst.execute();