Skip to content

Add VSIX runner to smoke tests#15541

Merged
nohwnd merged 1 commit into
microsoft:mainfrom
nohwnd:fix/15507-smoke-tests-vsix
Mar 23, 2026
Merged

Add VSIX runner to smoke tests#15541
nohwnd merged 1 commit into
microsoft:mainfrom
nohwnd:fix/15507-smoke-tests-vsix

Conversation

@nohwnd
Copy link
Copy Markdown
Member

@nohwnd nohwnd commented Mar 20, 2026

Smoke tests were not running against the VSIX-packaged vstest.console that ships into Visual Studio. Added useVsixRunner: true to 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)

RunDotnetTestWithCsproj is skipped as it uses dotnet test, not vstest.console.

Fixes #15507

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>
Copilot AI review requested due to automatic review settings March 20, 2026 16:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

@nohwnd nohwnd added the 🚢 Ship it! Add to PRs where owner approves automated PR, but cannot approve because they "wrote it". label Mar 20, 2026
@nohwnd nohwnd enabled auto-merge (squash) March 20, 2026 18:26
@nohwnd nohwnd merged commit d617cae into microsoft:main Mar 23, 2026
7 checks passed
This was referenced May 26, 2026
This was referenced May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚢 Ship it! Add to PRs where owner approves automated PR, but cannot approve because they "wrote it".

Projects

None yet

Development

Successfully merging this pull request may close these issues.

smoke tests not running on vsix?

3 participants