Skip to content

Commit 2ac4afb

Browse files
authored
feat(cli): show environment info in verbose mode (#3858)
* feat(cli): show environment info in verbose mode * fix: UT * remove .only
1 parent 7feea6b commit 2ac4afb

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Diff for: lib/command/run-workers.js

+4
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ module.exports = async function (workerCount, selectedRuns, options) {
3939
});
4040

4141
try {
42+
if (options.verbose) {
43+
const getInfo = require('./info');
44+
await getInfo();
45+
}
4246
await workers.bootstrapAll();
4347
await workers.run();
4448
} catch (err) {

Diff for: lib/command/run.js

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ module.exports = async function (test, options) {
2828
codecept.init(testRoot);
2929
await codecept.bootstrap();
3030
codecept.loadTests(test);
31+
32+
if (options.verbose) {
33+
const getInfo = require('./info');
34+
await getInfo();
35+
}
36+
3137
await codecept.run();
3238
} catch (err) {
3339
printError(err);

Diff for: test/runner/timeout_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('CodeceptJS Timeouts', function () {
6767
});
6868

6969
it('should override timeout config from global object', (done) => {
70-
exec(config_run_config('codecept.timeout.obj.conf.js', '#first', true), (err, stdout) => {
70+
exec(config_run_config('codecept.timeout.obj.conf.js', '#first', false), (err, stdout) => {
7171
debug_this_test && console.log(stdout);
7272
expect(stdout).toContain('Timeout 0.3s exceeded');
7373
expect(err).toBeTruthy();

0 commit comments

Comments
 (0)