-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.js
37 lines (32 loc) · 941 Bytes
/
test.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
const Jasmine = require('jasmine');
const reporters = require('jasmine-reporters');
const jasmine = new Jasmine();
var junitReporter = new reporters.JUnitXmlReporter({
savePath: __dirname,
consolidateAll: true,
filePrefix: "test-results"
});
jasmine.env.addReporter(junitReporter);
const JasmineConsoleReporter = require('jasmine-console-reporter');
const consoleReporter = new JasmineConsoleReporter({
colors: 1,
cleanStack: 1,
verbosity: 4,
listStyle: 'indent',
timeUnit: 'ms',
timeThreshold: { ok: 500, warn: 1000, ouch: 3000 },
activity: false,
emoji: false,
beep: false
});
jasmine.env.addReporter(consoleReporter);
jasmine.loadConfig({
spec_dir: 'spec',
spec_files: ['**/*[sS]pec.js'],
// helpers: ['helpers/**/*.js'],
random: false,
seed: null,
stopSpecOnExpectationFailure: false
});
console.log(`Using Jasmine version: ${jasmine.jasmine.version}`)
jasmine.execute();