[templates] Update androidtest to MSTest 4.3.2#12052
Merged
Merged
Conversation
Update the androidtest template to MSTest 4.3.2. Exercise dotnet test with both the stable template dependency and the nightly build dependency. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: b7c547f6-a8ce-4e27-b18f-05a24fb1d5e7
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the androidtest project template to use the latest stable MSTest package and expands the device integration coverage so template-generated projects are exercised with both the stable MSTest package and the repository’s nightly MSTest version.
Changes:
- Bump
androidtesttemplate MSTest package reference from 4.2.3 to 4.3.2. - Update
DotNetNewAndroidTestto optionally rewrite the generated project to the nightly MSTest version and add the test-tools feed only for the nightly case. - Adjust test matrix to include stable vs nightly MSTest package channels.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tests/MSBuildDeviceIntegration/Tests/InstallAndRunTests.cs | Adds stable/nightly MSTest channel handling to DotNetNewAndroidTest, including conditional rewrite + restore source. |
| src/Microsoft.Android.Templates/androidtest/AndroidTest1.csproj | Updates template MSTest package version to 4.3.2. |
Comment on lines
2489
to
+2492
| [Test] | ||
| [TestCase ("run", AndroidRuntime.CoreCLR)] | ||
| [TestCase ("test", AndroidRuntime.CoreCLR)] | ||
| public void DotNetNewAndroidTest (string mode, AndroidRuntime runtime) | ||
| [TestCase ("run", MSTestPackageChannel.Nightly)] | ||
| [TestCase ("test", MSTestPackageChannel.Stable)] | ||
| [TestCase ("test", MSTestPackageChannel.Nightly)] |
Member
Author
There was a problem hiding this comment.
I noticed this, and it seems fine. I don't think a bug would be surfaced from the missing combination.
simonrozsival
approved these changes
Jul 13, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Pull Request
title and
description
should follow the
commit-messages.mdworkflow documentation, and in particular should include:The
androidtesttemplate should use the latest stable MSTest release so newly created Android test projects receive current fixes and behavior. Update the template package reference from MSTest 4.2.3 to 4.3.2.Extend
DotNetNewAndroidTestsodotnet testexercises both the stable package from the generated template and the nightly MSTest package used by the repository build. The nightly case continues to rewrite the package version and add the test-tools feed; the stable case leaves the generated project unchanged.