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

Stardew Valley: Add test decorators to ensure all mods are tested once #4560

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Jouramie
Copy link
Contributor

@Jouramie Jouramie commented Jan 27, 2025

What is this fixing or adding?

Supersedes #4557

This creates two decorators to be used on a test class and a test method. They are designed to ensure that those tests are not forgotten when adding a new mod. If a mod in added with @testing_mod or in the excluded_mods parameter of @must_test_all_mods, the tests will fail in the tearDownClass of the test class.

This will enable unrolling the other mod tests, now that we can ensure maintainability is not hurt.

How was this tested?

Yes

If this makes graphical changes, please attach screenshots.

N/A

agilbert1412 and others added 3 commits January 26, 2025 16:26
…mprove total performance and performance on individual tests for threading purposes
@Jouramie Jouramie force-pushed the StardewValley/add-decorators-to-ensure-all-mods-are-tested-once branch from d10574e to a1bad3b Compare January 27, 2025 05:10
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.

2 participants