Skip to content

Keep test errors visible after cleanup warnings - #2375

Open
M-Colley wants to merge 1 commit into
r-lib:mainfrom
M-Colley:fix/record-errors-before-cleanup-2369
Open

M-Colley wants to merge 1 commit into
r-lib:mainfrom
M-Colley:fix/record-errors-before-cleanup-2369

Conversation

@M-Colley

Copy link
Copy Markdown

Fixes #2369.

A cleanup warning can arrive after a test error. The result summary now checks all recorded results for errors regardless of their order. It keeps errors out of the expectation counts and still counts the cleanup warning.

The regression checks that test_dir() fails with its default settings and that the returned summary flags the error when stop_on_failure = FALSE. The reporter tests, full package check, and Air formatting passed on Windows R 4.6.1.

AI assistance was used to prepare and review this patch.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hiding errors when the test records another result after it (perhaps in an exit handler)

1 participant