-
Notifications
You must be signed in to change notification settings - Fork 359
Debugging the NTVS TestAdapter code with vstest.console.exe
Paul van Brenk edited this page Dec 12, 2017
·
6 revisions
🎵Note: This documentation is outdated at this point, especially when using the Node tools in Visual Studio 2017. We're working on update docs, and will redirect you to those when they're ready.
This guide explains how NTVS contributors can try to debug the NTVS TestAdapter code when the test adapter is run under vstest.console.exe
- Get NTVS building locally
- Open the
nodejstools
solution, and set launch target toTestAdapter
- Open the properties for the
TestAdapter
project and go to thedebug
tab. - Use the following settings:
-
Start External Program
=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe
-
Command line Arguments
="C:\FULL_PATH_TO_EXAMPLE_PROJ\Example.njsproj" /TestAdapterPath:".\BuildOutput\Debug14.0\Binaries\TestAdapter\"
-
Working directory
= Point to location of localTestFrameworks
directory -C:\PATH_TO_NTVS_SRC\Nodejs\Product\Nodejs\
- In VS with the test explorer window open, besides
devenv
attach tovstest.discoveryengine.x86.exe
andvstest.executorengine.x86.exe
(source)