-
Notifications
You must be signed in to change notification settings - Fork 12k
test: catch and log all errors include test setup #23903
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
Conversation
tests/legacy-cli/e2e_runner.ts
Outdated
if (shardId !== null) { | ||
console.log(colors.green(`Done shard ${shardId} of ${nbShards}.`)); | ||
} else { | ||
console.log(colors.green('Done.')); | ||
} | ||
} catch (err) { | ||
|
||
process.exit(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why setting the exit code is needed? (If needed it would be better to use process.exitCode
instead.)
tests/legacy-cli/e2e_runner.ts
Outdated
@@ -175,13 +175,22 @@ Promise.all([findFreePort(), findFreePort()]) | |||
await runSteps(runSetup, allSetups, 'setup'); | |||
await runSteps(runInitializer, allInitializers, 'initializer'); | |||
await runSteps(runTest, testsToRun, 'test'); | |||
|
|||
} finally { | |||
registryProcess.kill(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would cause the NPM registry to be terminated as well when debug is enabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point 👍
4b2635a
to
4e58e28
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please squash the fixups? Thanks
66f41c5
to
21f73e4
Compare
Squashed 👍 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I had a case of something else above throwing and it was hidden due to this.