This runner supports xUnit.net tests for ASP.NET v5+.
To install this package, ensure your project.json contains the following lines:
{
"dependencies": {
"xunit": "2.0.0-*",
"xunit.runner.aspnet": "2.0.0-*"
},
"frameworks": {
"aspnet50": {
"frameworkAssemblies": {
"System.Runtime": ""
}
},
"aspnetcore50": {
"dependencies": {
"System.Runtime": "4.0.20-beta-22231"
}
}
},
"commands": {
"test": "xunit.runner.aspnet"
}
}
To run tests from the command line, use the following.
# Restore NuGet packages
kpm restore
# Run tests
k test