-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.js
29 lines (25 loc) · 838 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
(function () {
var Jasmine = require('jasmine'),
SpecReporter = require('jasmine-spec-reporter'),
noop = function() {},
jrunner = new Jasmine(),
process = require('process'),
commander = require('commander'),
packageJson = require('./package.json'),
specReporterOptions = {
prefixes: {
success: 'OK ',
failure: 'ERR ',
pending: '... '
}
};
jrunner.configureDefaultReporter({ print: noop });
commander
.version(packageJson.version)
.option('-c, --no-color')
.parse(process.argv);
specReporterOptions.colors = commander.color;
jasmine.getEnv().addReporter(new SpecReporter(specReporterOptions));
jrunner.loadConfigFile();
jrunner.execute();
})();