Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.

[tests] Use dotnet test to run AndroidSdk-Tests - #102

Merged
jonpryor merged 8 commits into
mainfrom
dotnet-test
Jan 5, 2021
Merged

jonpryor merged 8 commits into
mainfrom
dotnet-test

Conversation

@pjcollins

Copy link
Copy Markdown
Member

Updates Xamarin.Android.Tools.AndroidSdk-Tests.csproj to target only
netcoreapp3.1, and updates all test running logic to use dotnet test.
This will allow us to remove the globalPackagesFolder override from
NuGet.config as NUnit.ConsoleRunner is no longer referenced or used.

The YAML pipeline has also been consolidated a bit to reduce step
duplication. A matrix strategy is now used to run the same steps in
parallel on both macOS and Windows. OS-specific steps are now hidden
behind a condition so that we don't duplicate artifact uploading and
publishing.

Updates `Xamarin.Android.Tools.AndroidSdk-Tests.csproj` to target only
`netcoreapp3.1`, and updates all test running logic to use dotnet test.
This will allow us to remove the `globalPackagesFolder` override from
NuGet.config as NUnit.ConsoleRunner is no longer referenced or used.

The YAML pipeline has also been consolidated a bit to reduce step
duplication.  A matrix strategy is now used to run the same steps in
parallel on both macOS and Windows.  OS-specific steps are now hidden
behind a condition so that we don't duplicate artifact uploading and
publishing.
@pjcollins
pjcollins marked this pull request as ready for review December 16, 2020 19:45
@pjcollins pjcollins added the do-not-merge Do not merge this PR label Dec 16, 2020
@pjcollins

Copy link
Copy Markdown
Member Author

We can probably wait to merge this until after d16-9 branches.

Comment thread .vscode/settings.json Resolved
Comment thread Makefile Resolved
Comment thread Makefile Resolved

@jonathanpeppers jonathanpeppers left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Otherwise, LGTM 👍

Comment thread Makefile Resolved
@pjcollins pjcollins removed the do-not-merge Do not merge this PR label Jan 4, 2021
pjcollins and others added 2 commits January 4, 2021 13:27
`dotnet test *.[dll][csproj]` is nearly as straightforward of a command
as `make run-all-tests`, and has the benefit of being supported on
multiple operating systems.
@jonpryor
jonpryor merged commit 5ff1702 into main Jan 5, 2021
@pjcollins
pjcollins deleted the dotnet-test branch July 18, 2022 20:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants