Skip to content

Run selected tests in en-US culture#6985

Merged
RussKie merged 3 commits intodotnet:mainfrom
RussKie:run_tests_in_en-US_culture
Apr 26, 2022
Merged

Run selected tests in en-US culture#6985
RussKie merged 3 commits intodotnet:mainfrom
RussKie:run_tests_in_en-US_culture

Conversation

@RussKie
Copy link
Copy Markdown
Contributor

@RussKie RussKie commented Apr 8, 2022

Mu OS default locale is set to "en-AU", and these tests kept failing for me. Add two new XUnit attributes to specify the desired locale.

/cc: @weltkante @vladimir-krestov I know that in the past you had troubles with some locale-dependent tests on your ends. If you could run these changes and confirm that (at least) these tests pass for you - it would be awesome.
Also, if you see any other tests that may benefit from the new decoration - please let me know (or sent a PR in :)).
Thank you.

Microsoft Reviewers: Open in CodeFlow

@RussKie RussKie requested a review from a team as a code owner April 8, 2022 00:45
@ghost ghost assigned RussKie Apr 8, 2022
@RussKie RussKie added the test-enhancement Improvements of test source code label Apr 8, 2022
@weltkante
Copy link
Copy Markdown
Contributor

Thanks, I'll cross reference with my local branch I pull in to adjust broken tests (an older version is also here but I haven't pushed it for a long time, that was just for commenting on an issue back then). Do you want this to be the resolution for #2734? If so I can do a PR to adress the affected tests.

Tanya-Solyanik
Tanya-Solyanik previously approved these changes Apr 8, 2022
Copy link
Copy Markdown
Contributor

@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

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

Looks good.

Comment thread src/Common/tests/TestUtilities/XUnit/UseCultureAttribute.cs Outdated
Comment thread src/Common/tests/TestUtilities/XUnit/UseCultureAttribute.cs Outdated
@dreddy-work dreddy-work added the waiting-author-feedback The team requires more information from the author label Apr 11, 2022
@RussKie RussKie force-pushed the run_tests_in_en-US_culture branch from ac4ff29 to d5b7870 Compare April 26, 2022 05:54
@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Apr 26, 2022
@RussKie RussKie merged commit 9a26e66 into dotnet:main Apr 26, 2022
@RussKie RussKie deleted the run_tests_in_en-US_culture branch April 26, 2022 07:58
@ghost ghost added this to the 7.0 Preview5 milestone Apr 26, 2022
@ghost ghost locked as resolved and limited conversation to collaborators May 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

test-enhancement Improvements of test source code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants