Add VSIX runner to smoke tests#15541
Merged
Merged
Conversation
Smoke tests were not running against the VSIX-packaged vstest.console that ships into Visual Studio. Add useVsixRunner: true to the data source attributes so these tests also validate the VSIX runner. - DiscoveryTests.MultipleSourcesDiscoverAllTests (Acceptance) - ExecutionTests.RunMultipleMSTestAssembliesOnVstestConsoleAndTesthostCombinations3 (Acceptance) - RunTests.RunAllTestsFromDlls (Library) - DiscoverTests.DiscoverTestsUsingDiscoveryEventHandler2AndTelemetryOptedIn (Library) DotnetTestTests.RunDotnetTestWithCsproj is skipped as it uses dotnet test, not vstest.console directly. Fixes microsoft#15507 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Extends existing smoke/acceptance integration tests to also run against the VSIX-packaged vstest.console (the one shipped in Visual Studio) by enabling useVsixRunner: true on relevant data sources.
Changes:
- Add a new NetFull+VSIX data source to library translation-layer smoke tests (run/discovery).
- Switch existing NetFull data sources in acceptance smoke tests to use the VSIX runner.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| test/Microsoft.TestPlatform.Library.IntegrationTests/TranslationLayerTests/RunTests.cs | Adds NetFull data source configured to use the VSIX runner for smoke coverage. |
| test/Microsoft.TestPlatform.Library.IntegrationTests/TranslationLayerTests/DiscoverTests.cs | Adds NetFull data source configured to use the VSIX runner for smoke coverage. |
| test/Microsoft.TestPlatform.Acceptance.IntegrationTests/ExecutionTests.cs | Updates NetFull data source in an acceptance smoke test to use the VSIX runner. |
| test/Microsoft.TestPlatform.Acceptance.IntegrationTests/DiscoveryTests.cs | Updates NetFull data source in an acceptance smoke test to use the VSIX runner. |
drognanar
approved these changes
Mar 23, 2026
This was referenced Mar 25, 2026
This was referenced May 26, 2026
Open
Closed
Merged
This was referenced May 27, 2026
Open
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.
Smoke tests were not running against the VSIX-packaged vstest.console that ships into Visual Studio. Added
useVsixRunner: trueto smoke test data source attributes so they also validate the VSIX runner path.Tests updated:
MultipleSourcesDiscoverAllTests(Acceptance - already had NetFull, added VSIX)RunMultipleMSTestAssembliesOnVstestConsoleAndTesthostCombinations3(Acceptance - already had NetFull, added VSIX)RunAllTestsFromDlls(Library - added new NetFull+VSIX data source)DiscoverTestsUsingDiscoveryEventHandler2AndTelemetryOptedIn(Library - added new NetFull+VSIX data source)RunDotnetTestWithCsprojis skipped as it usesdotnet test, not vstest.console.Fixes #15507