How to run all tests in Visual Studio Code

前端 未结 5 2280
没有蜡笔的小新
没有蜡笔的小新 2020-12-24 06:01

The latest version of VS Code already provides an easy way of running a single test as pointed on Tyler Long\'s answer to the question Debugging xunit tests in .NET Core and

5条回答
  •  悲哀的现实
    2020-12-24 06:51

    There is a much easier way to run all tests:

    1. Install the .NET Core Test Explorer extension
    2. Open a .NET Core test project in VS Code, or set dotnet-test-explorer.testProjectPath to the folder path of .NET Core test project in settings.json
    3. In .NET Test Explorer of Explorer view, all the tests will be automatically detected, and you are able to run all tests or a certain test

提交回复
热议问题