Events
17 Mar, 9 pm - 21 Mar, 10 am
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
You can run tests on already published output by using the dotnet vstest
command. This will work on xUnit, MSTest, and NUnit tests. Simply locate the DLL file that was part of your published output and run:
dotnet vstest <MyPublishedTests>.dll
Where <MyPublishedTests>
is the name of your published test project.
The commands below demonstrate running tests on a published DLL.
dotnet new mstest -o MyProject.Tests
cd MyProject.Tests
dotnet publish -o out
dotnet vstest out/MyProject.Tests.dll
Note
Note: If your app targets a framework other than netcoreapp
, you can still run the dotnet vstest
command by passing in the targeted framework with a framework flag. For example, dotnet vstest <MyPublishedTests>.dll --Framework:".NETFramework,Version=v4.6"
. In Visual Studio 2017 Update 5 and later, the desired framework is automatically detected.
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Events
17 Mar, 9 pm - 21 Mar, 10 am
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining
Module
C# testing in Visual Studio - Training
Start testing your C# apps by using the testing tools in Visual Studio. Learn to write tests, use Test Explorer, create test suites, and apply the red, green, refactor pattern to write code.