-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
25 lines (24 loc) · 832 Bytes
/
index.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
const path = require('path');
const Chimp = require('chimp');
const reporter = require('cucumber-html-reporter');
const async = require('async');
const options = require('./configuration/config');
async.series([
function (callback) {
const chimpDefaultOptions = require(path.resolve(process.cwd() + '/node_modules/chimp/dist/bin/default.js'))
options._ = []
const chimpOptions = Object.assign({}, chimpDefaultOptions, options)
const chimp = new Chimp(chimpOptions)
chimp.init(function (err, results) {
if (err == "Cucumber steps failed") err = null
return callback(err, results);
})
},
function (callback) {
reporter.generate(options)
callback()
}
], function (err, results) {
console.log('finished')
process.exit();
})