Skip to content

Add option to not share .NET Framework testhosts - #5018

Merged
Jakub Jareš (nohwnd) merged 5 commits into
microsoft:mainfrom
nohwnd:disable-shared
May 20, 2024
Merged

Add option to not share .NET Framework testhosts#5018
Jakub Jareš (nohwnd) merged 5 commits into
microsoft:mainfrom
nohwnd:disable-shared

Conversation

@nohwnd

@nohwnd Jakub Jareš (nohwnd) commented May 3, 2024

Copy link
Copy Markdown
Member

Adds runsettings option to disable sharing testhosts:

<DisableSharedTestHost>true</DisableSharedTestHost>

and ENV:

VSTEST_DISABLE_SHARING_NETFRAMEWORK_TESTHOST=1

This is useful when solution is using both MSTest v2 and MSTest v3 and would like to run each project in isolated process even when they are not running in parallel, or not disabling appdomains. Otherwise the extension logic will send both extension dlls to the host for initialization and it will fail to find the extension and to run the tests.

This option only affects .NET Framework test projects that don't enable parallelization, or don't disable app domains. Such projects are sharing host, others are not.

Adds option to skip default adapters (the extensions that are place in Extensions folder in our VisualStudio folder).

<SkipDefaultAdapters>true</SkipDefaultAdapters>

This allows projects to run even if external extensions (such as Chutzpah) add dependencies that are incompatible with the projects. Without this option all extensions from the built in folder are always included in the run.

Fix #3475

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple versions of the same extension found

1 participant