-
Notifications
You must be signed in to change notification settings - Fork 865
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
fix: force language in tests #1819
base: master
Are you sure you want to change the base?
Conversation
I think that this is in response to an issue, but I don't recall what. I'd like to make sure we know what problem we're fixing first. In general, setting a locale in the tests so that they always run the same way is a good idea, although if we want to do that we should probably do it somewhere in the build/src directory so that it affects all the modules. However, that would imply that we only test in English, so we should probably follow up with running the tests in CI in a few different locales. Does anyone else have experience doing this who could maybe look in to that? |
The issue is linked in the PR description - #1803
I don't think that is really scalable. There's a lot of test that check the text of an error message, which is generated via the properties files. All error messages have a description in English, but very few have a description in the other two languages for which properties file exist (French and Chinese). Duplicating those tests to check the error message in, say, French wouldn't really give us a lot more confidence in the code, IMHO. |
I think that our best bet is to:
I'm happy to tackle the first part but for the second I'd like someone to try who knows what kinds of errors we'd be looking for. |
I'm fine, if we set the default language in the tests for now to en/US etc. If I find time, I can try to create a GH-action that runs in various locales/TZ. |
Fixes #1803