Skip to content

Run the tests in English - #1959

Open
zolferfigueiredo wants to merge 1 commit into
rxhanson:mainfrom
zolferfigueiredo:fix/run-tests-in-english
Open

zolferfigueiredo wants to merge 1 commit into
rxhanson:mainfrom
zolferfigueiredo:fix/run-tests-in-english

Conversation

@zolferfigueiredo

Copy link
Copy Markdown
Contributor

Fixes #1958.

Problem

On a Mac whose language isn't English, 2 tests (4 checks) fail:

  • MouseButtonShortcutTests.testButtonsAreNumberedFromTheLeftButton
  • WindowActionShortcutViewTests.testStoredMouseButtonIsShownByName

They compare against English text ("Middle Button", "Button 4"), but the test host runs in the Mac's language. On main this already happens on Macs set to Spanish, Brazilian Portuguese, Hindi, Ukrainian or Chinese; #1957 adds Italian to that list.

Fix

The shared scheme's test action now runs in English (language = "en", region = "US"). It applies in Xcode and in xcodebuild alike, so the tests no longer depend on the Mac's language.

Tests

Some tests compare against English text, such as "Middle Button" and "Button 4". On a Mac set to Italian they got the new Italian translations and failed. The scheme's test action now runs in English (en, US), in Xcode and xcodebuild alike.
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.

Tests fail when the Mac isn't set to English

1 participant