Skip to content
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

wpt: fail runner if expected failures don't fail #1736

Merged

Conversation

KhafraDev
Copy link
Member

@KhafraDev KhafraDev commented Oct 27, 2022

The runner will now fail if a test that is marked as an expected failure doesn't fail.

The way I did this is either ingenious or horrible, depending on how you look at it. It maps tests that failed to an object and then compares that object to a slightly modified version of the status file (without including other flags or flaky tests).

assert gives a very nice error message with exactly which test(s) did not fail (ie. tests that were not in both objects)

I should also add that the order in which tests fail in is entirely deterministic such that the order in which tests fail in will never differ. The failures are mapped by the name of the file itself, similarly to the status files.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 00a752f into nodejs:main Oct 27, 2022
metcoder95 pushed a commit to metcoder95/undici that referenced this pull request Dec 26, 2022
crysmags pushed a commit to crysmags/undici that referenced this pull request Feb 27, 2024
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.

None yet

2 participants