Skip to content

fixing that testgrep gets ignored when --verbose is set #3901

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/command/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion lib/command/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down