Hi!
I’m trying build my custom runner, but when I start it I have error “TypeError: codecept.bootstrap is not a function”.
runner.js:
let Container = require('codeceptjs').container;
let Codecept = require('codeceptjs').codecept;
let config = require('codeceptjs').config.get();
let opts = { steps: true };
let codecept = new Codecept(config, opts);
codecept.initGlobals(__dirname);
Container.create(config, opts);
codecept.bootstrap();
codecept.loadTests('./test/test.js');
codecept.run();
codecept.json:
{
"tests": "test/test.js",
"timeout": 10000,
"output": "./output",
"helpers": {
"Puppeteer": {
"url": "",
"browser": "chrome",
"show": true,
"restart": false
}
"bootstrap": "./server.js",
"mocha": {},
"name": "codetest"
}
server.js:
const server = require('selenium-standalone');
module.exports = {
bootstrap: done => {
server.start(done);
},
teardown: done => {
server.stop(done);
}
}
Of course I installed selenium-standalone. Any idea why it doesn’t work?