List of Features
How to Configure
Discover all tests, Runs specific tests, Inspect result, Debug, Go To Test Definition.
When the extension is enabled it will automatically open the Test Explorer. The discovered test will appear on the windows like on the image below
As you run, write, and rerun your tests, Test Explorer displays the results in default groups of Failed Tests, Passed Tests, Skipped Tests and Not Run Tests.
You can run all the tests in the solution, all the tests in a group, or a set of tests that you select. Do one of the following:
- To run all the tests in a solution, click on the ... and choose Run All.
- To run a specific test select the test and click on Run. You can also right click the test and select Run Selected Test Case
- To run a specific group of test select the test group and click on Run You can also right click the test group and select Run Selected Test Group
You can enable or disable the run test after every build by adding a postBuildTask to your task.json.
Every time a new test starts a progress indicator icon will be presented on the left side of test name.
As you run, write, and rerun your tests, Test Explorer displays the results in groups of Failed Tests, Passed Tests, Skipped Tests and Not Run Tests. The output pane at the bottom of Test Explorer displays a summary of the test run.
To view the details of an individual test, select the test, right click and select Show Selected Test Results
The result will be displayed on the output window
To display the source code for a test method in the Visual Studio Code editor you only need to left click the test.
Group and filter is not supported yet.
To setup your enviroment to run .NET test you must add the following configuration to the files settings.json:
"vstest.dotnet": {
"output": "bin/debug",
"framework": "netcoreapp1.0",
"outputFileName": "UnitTest.dll"
}
Tip: Check the sample project for configuration help.
Configurable options:
- "output" -> Output path where the build files are. Relative to workspace path.
- "framework" -> The framework that the test will run/be discovered.
- outputFileName -> Your dll/exe file name
So basically, the plugin will look for workSpaceDirectory\output**\outputFileName. All files matching this string will be send to the VSTest
Available framework options:
- netcoreapp1.0
- netcoreapp1.1
- netcoreapp2.0
- Framework35
- Framework40
- Framework45
- net46
To run .Net Core Test you must install .Net Core You must install .Net Core
Alpha Release
0.0.2 - 2017-08-20
- Add glob/framework to settings.json
- Add group by feature (by outcome, time and class)
- Add command to initialize the extension