1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-10 10:00:57 +09:00
Satori/docs/workflow/testing/visualstudio.md
Viktor Hofer 2cd041bbee
Document F5 and Test Explorer prerequisites (#36117)
* Document F5 and Test Explorer prerequisites

* Update docs/workflow/testing/visualstudio.md

Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
2020-05-08 21:03:17 +02:00

1.7 KiB

Visual Studio Test Explorer support

For Visual Studio Test Explorer to work in dotnet/runtime, the following test settings need to be enabled:

  • Test parameters (like which dotnet host to use) are persisted in an auto-generated .runsettings file. For that to work, make sure that the "Auto detect runsettings Files" (Options -> Test) option is enabled.
  • Make sure that the "Processor Architecture for AnyCPU project" (Test Explore pane -> Test Explorer toolbar options --> Settings) value is set to auto.

Visual Studio F5 Debugging support

dotnet/runtime uses dotnet test (VSTest) which spawns child processes during test execution. Visual Studio by default doesn't automatically debug child processes, therefore preliminary steps need to be done to enable Debugging "F5" support. Note that these steps aren't necessary for Visual Studio Test Explorer support.

  1. Install the Microsoft Child Process Debugging Power Tool extension.
  2. Go to the child process debug settings (Debug -> Other Debug Targets -> Child Process Debugging Settings...), enable the "Enable child process debugging" option and hit save.
  3. Go to the project debug settings (Debug -> $ProjectName Properties) and enable the "Enable native code debugging" option.

References