Running dotnet test
from inside a folder that contains a test project will launch the test runner. The test runner will discover and run the tests in the project.
To be compatible with dotnet test
, the project.json file must contain a testRunner
property and a dependency on a compatible test runner package:
{
"dependencies": {
"dotnet-test-xunit": "2.2.0-preview2-build1029",
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0"
},
"xunit": "2.1.0"
},
"frameworks": {
"netcoreapp1.0": {
"imports": [ "dotnet", "portable-net45+win8" ]
}
},
"testRunner": "xunit"
}