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

Add integration test for LocalizedDatasets #28485

Merged

Conversation

Tayrtahn
Copy link
Member

@Tayrtahn Tayrtahn commented Jun 1, 2024

About the PR

Adds an integration test that makes sure that all of the LocId strings that can be obtained from all the LocalizedDatasetPrototypes have corresponding Fluent strings loaded into the localization manager.

Why / Balance

This is going to fail with the current master, since there's a gap in the Tips dataset (entry 51 is missing). This will help prevent that from happening again. See #28486.

Technical details

Very simple test. Just iterates over the prototypes, iterates over the values returned by each one, and calls ILocalizationManager.HasString to test if they exist.

Media

Code.

  • I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog

Nah.

@Tayrtahn Tayrtahn added the S: DO NOT MERGE Status: Open item that should NOT be merged. DNM. Allows test to run unlike draft. label Jun 1, 2024
@Tayrtahn Tayrtahn removed the S: DO NOT MERGE Status: Open item that should NOT be merged. DNM. Allows test to run unlike draft. label Jun 3, 2024
@AJCM-git AJCM-git added the S: Awaiting Changes Status: Changes are required before another review can happen label Jun 3, 2024
@Tayrtahn Tayrtahn requested a review from AJCM-git June 3, 2024 19:11
@github-actions github-actions bot added S: Needs Review Status: Requires additional reviews before being fully accepted and removed S: Awaiting Changes Status: Changes are required before another review can happen labels Jun 3, 2024
@AJCM-git AJCM-git merged commit af7f70b into space-wizards:master Jun 3, 2024
12 checks passed
@Tayrtahn Tayrtahn deleted the localized-dataset-integration-test branch June 3, 2024 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: Needs Review Status: Requires additional reviews before being fully accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants