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

tests: Add known_failure as a test option, and migrate many tests to it #12324

Merged
merged 6 commits into from
Jul 26, 2023

Conversation

Dinnerbone
Copy link
Contributor

@Dinnerbone Dinnerbone commented Jul 26, 2023

The goal is to use known_failure = true instead of ignore = true for tests that we know don't work now, but may work one day.

When a test is marked known_failure, it'll be tested and the comparison logic is inverted. If it suddenly passes, it'll throw an error and the developer will be prompted to unflag it as the test now passes and should be checked going forwards for regressions.

@Dinnerbone Dinnerbone added the waiting-on-review Waiting on review from a Ruffle team member label Jul 26, 2023
@torokati44
Copy link
Member

Hmm, this name implies to me that a given test is a "negative test" and that the expected result (ie. when Ruffle is working correctly) is that it fails. Sure, the message it gives explains that this is not the case, but in the test itself it's not there. How about "known_fails" (or something similar)? I like the basic idea though!

@Dinnerbone
Copy link
Contributor Author

known_failure might be good?

I just took the name Adrian said and rolled with it, didn't give much thought. Happy to change it!

@torokati44
Copy link
Member

known_failure might be good?

Excellent IMHO!

@Dinnerbone
Copy link
Contributor Author

Renamed!

@Dinnerbone Dinnerbone changed the title tests: Add should_fail as a test option, and migrate many tests to it tests: Add known_failure as a test option, and migrate many tests to it Jul 26, 2023
@Dinnerbone Dinnerbone merged commit 6a7063a into ruffle-rs:master Jul 26, 2023
@Lord-McSweeney Lord-McSweeney removed the waiting-on-review Waiting on review from a Ruffle team member label Jul 27, 2023
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.

5 participants