diff --git a/lib/command/info.js b/lib/command/info.js index 48e4e7402..02093b6f6 100644 --- a/lib/command/info.js +++ b/lib/command/info.js @@ -4,10 +4,10 @@ const { getConfig, getTestRoot } = require('./utils'); const Codecept = require('../codecept'); const output = require('../output'); -module.exports = async function (path) { +module.exports = async function (path, options) { const testsPath = getTestRoot(path); const config = getConfig(testsPath); - const codecept = new Codecept(config, {}); + const codecept = new Codecept(config, options); codecept.init(testsPath); output.print('\n Environment information:-\n'); diff --git a/lib/command/run.js b/lib/command/run.js index fba9b3a68..516074123 100644 --- a/lib/command/run.js +++ b/lib/command/run.js @@ -31,7 +31,7 @@ module.exports = async function (test, options) { if (options.verbose) { const getInfo = require('./info'); - await getInfo(); + await getInfo(testRoot, options); } await codecept.run();