This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Running Visual Studio tests
Hugues Valois edited this page Mar 12, 2018
·
5 revisions
More detailed/verbose build instructions are available at https://github.com/microsoft/ptvs/wiki/Build-Instructions-for-PTVS
- Install Visual Studio 2017 15.7 Preview 1 or later with the following workloads:
- .NET Desktop development
- Desktop Development with C++
- Visual Studio extension development
- Clone https://github.com/microsoft/ptvs or your own fork
- Run PTVS\Python\Prerequisites\EnableSkipVerification.reg
- Run as Admin PTVS\Python\Prerequisites\deploy_test_targets.cmd
- Open PTVS\Python\PythonTools.sln
- Build solution
- F5 to launch Visual Studio experimental instance
- Check experimental debugger option in Tools/Options/Python/Experimental, close and relaunch VS
- This is only needed for manual testing, the automated tests bypass the option
- Open Python Environments window
- Select the Python environment you want to run the tests under
- Click on Make this the default environment for new projects
- Install/update ptvsd in that environment
- Close Visual Studio experimental instance
- Open Test Explorer, select Group by Class from the toolbar
- Right-click on DebugProjectUITestsExperimental and Run Tests
- This will launch the Visual Studio experimental instance and run the tests
- Wait for test run to complete
Note: We're waiting for a fix from the adapter host team. Right now, all tests are failing.