-
Notifications
You must be signed in to change notification settings - Fork 564
[MSBuildDeviceIntegration] Add nightly localization unit tests. #6693
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
Merged
+358
−10
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
2b97b0b
[MSBuildDeviceIntegration] Add nightly localization unit tests.
dellis1972 a51aae4
Ignore new Localization tests on PR runs
dellis1972 0ad7a29
fix formating issue
dellis1972 c40307f
Fix another typo
dellis1972 d064592
Filter out some more tests. Add Logging
dellis1972 eb53c20
Run Random tests
dellis1972 d63fdb5
update ignore list
dellis1972 586aaeb
Use more nodes for Localization tests
dellis1972 62f2fae
Output the Strings.SomeString to the label
dellis1972 1cc568b
Add Logging. Default emulators to en-US
dellis1972 ff0147f
increase monitor time for BOOT_COMPLETED
dellis1972 2c67a3b
dont run tests in parallel
dellis1972 caf8eef
Try to make tests more reliable
dellis1972 c6e35b0
ff
dellis1972 630386d
Add LocaleNative output for reference
dellis1972 f608add
Ignore he-IL and id-ID locales
dellis1972 3bcaa97
Try to fix CancelRequestViaProxy
dellis1972 3d99d04
ff
dellis1972 68fbe59
Use 12 nodes for localizaiton as there are loads of them
dellis1972 912719c
Run Localization Tests under .net
dellis1972 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
build-tools/automation/yaml-templates/run-localization-tests.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| # Runs Localization tests against an emulator running on macOS | ||
|
|
||
| parameters: | ||
| node_id: 0 | ||
|
|
||
| jobs: | ||
| - job: mac_localization_tests_${{ parameters.node_id }} | ||
| displayName: Localization Emulator Tests ${{ parameters.node_id }} | ||
| pool: | ||
| vmImage: $(HostedMacImage) | ||
| timeoutInMinutes: 180 | ||
| cancelTimeoutInMinutes: 5 | ||
| workspace: | ||
| clean: all | ||
| steps: | ||
| - template: setup-test-environment.yaml | ||
|
|
||
| - template: run-xaprepare.yaml | ||
| parameters: | ||
| arguments: --s=EmulatorTestDependencies | ||
|
|
||
| - task: DownloadPipelineArtifact@2 | ||
| inputs: | ||
| artifactName: $(TestAssembliesArtifactName) | ||
| downloadPath: $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration) | ||
|
|
||
| - task: MSBuild@1 | ||
| displayName: start emulator | ||
| inputs: | ||
| solution: tests/Mono.Android-Tests/Mono.Android-Tests.csproj | ||
| configuration: $(XA.Build.Configuration) | ||
| msbuildArguments: >- | ||
| /t:AcquireAndroidTarget /bl:$(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/start-emulator.binlog | ||
|
|
||
| - template: run-nunit-tests.yaml | ||
| parameters: | ||
| testRunTitle: LocalizationTests On Device - macOS | ||
| testAssembly: $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/MSBuildDeviceIntegration/$(DotNetStableTargetFramework)/MSBuildDeviceIntegration.dll | ||
| useDotNet: true | ||
| dotNetTestExtraArgs: --filter "Name~CheckLocalizationIsCorrectNode${{ parameters.node_id }}" | ||
| testResultsFile: TestResult-LocalizationTests-Node${{ parameters.node_id }}-$(XA.Build.Configuration).xml | ||
|
|
||
| - task: MSBuild@1 | ||
| displayName: shut down emulator | ||
| inputs: | ||
| solution: tests/Mono.Android-Tests/Mono.Android-Tests.csproj | ||
| configuration: $(XA.Build.Configuration) | ||
| msbuildArguments: >- | ||
| /t:AcquireAndroidTarget,ReleaseAndroidTarget | ||
| /bl:$(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/shutdown-emulator.binlog | ||
| condition: always() | ||
|
|
||
| - template: upload-results.yaml | ||
| parameters: | ||
| artifactName: Test Results - TimeZoneInfo With Emulator - macOS - ${{ parameters.node_id }} | ||
|
|
||
| - template: fail-on-issue.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.