-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjasmine.conf.js
executable file
·43 lines (37 loc) · 1.2 KB
/
jasmine.conf.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
31
32
33
34
35
36
37
38
39
40
41
42
43
var Jasmine = require('jasmine');
var jasmine = new Jasmine();
jasmine.loadConfigFile('spec/support/jasmine.json');
jasmine.loadConfig({
spec_dir : "integration/tests",
spec_files : [
"**/*[sS]pec.js"
],
stopSpecOnExpectationFailure: false,
random : false
});
jasmine.onPrepare(function () {
var today, timeStamp;
today = new Date();
timeStamp = today.getMonth() + 1 + '-' + today.getDate() + '-'
+ today.getFullYear() + '-' + today.getHours() + 'h-'
+ today.getMinutes() + 'm';
// Configuration of HTML reporter
jasmine.addReporter(
new Jasmine2HtmlReporter({
savePath : './testReports/e2e' + timeStamp + '/',
filePrefix : 'e2e',
takeScreenshots : true,
takeScreenshotsOnlyOnFailures: true,
consolidate : true,
consolidateAll : true
})
);
});
jasmine.onComplete(function (passed) {
if (passed) {
console.log('All specs have passed');
}
else {
console.log('At least one spec has failed');
}
});