Skip to content

test: catch and log all errors include test setup - #23903

Merged
clydin merged 1 commit into
angular:mainfrom
jbedard:e2e-log-errors
Sep 19, 2022
Merged

test: catch and log all errors include test setup#23903
clydin merged 1 commit into
angular:mainfrom
jbedard:e2e-log-errors

Conversation

@jbedard

@jbedard jbedard commented Sep 12, 2022

Copy link
Copy Markdown
Contributor

I had a case of something else above throwing and it was hidden due to this.

Comment thread tests/legacy-cli/e2e_runner.ts Outdated
}
} catch (err) {

process.exit(0);

Copy link
Copy Markdown
Collaborator

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.)

Comment thread tests/legacy-cli/e2e_runner.ts Outdated
await runSteps(runTest, testsToRun, 'test');

} finally {
registryProcess.kill();

Copy link
Copy Markdown
Collaborator

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point 👍

@alan-agius4 alan-agius4 left a comment

Copy link
Copy Markdown
Collaborator

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

@alan-agius4 alan-agius4 added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews target: patch This PR is targeted for the next patch release labels Sep 19, 2022
@jbedard

jbedard commented Sep 19, 2022

Copy link
Copy Markdown
Contributor Author

Squashed 👍

@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Sep 19, 2022
@clydin
clydin merged commit decd469 into angular:main Sep 19, 2022
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants