2016-01-18 01:51:42 +03:00
## <a href="https://github.com/xunit/xunit"><img src="https://raw.github.com/xunit/media/master/full-logo.png" title="xUnit.net CoreCLR Runner" /></a>
2015-12-10 04:48:40 +03:00
2016-01-18 01:51:42 +03:00
This runner supports [xUnit.net ](https://github.com/xunit/xunit ) tests for [dotnet 4.5.1+, and dotnet Core 5+ ](https://github.com/dotnet/corefx ) (this includes [ASP.NET 5+ ](https://github.com/aspnet )).
2015-12-10 04:48:40 +03:00
2016-04-07 23:03:18 +03:00
![](https://mseng.visualstudio.com/_apis/public/build/definitions/d09b7a4d-0a51-4c0e-a15a-07921d5b558f/3249/badge)
2015-12-10 04:48:40 +03:00
### Usage
To install this package, ensure your project.json contains the following lines:
```JSON
{
"dependencies": {
"xunit": "2.1.0-*",
2016-01-18 01:51:42 +03:00
"dotnet-test-xunit": "2.1.0-*"
2015-12-10 04:48:40 +03:00
},
2016-01-18 01:51:42 +03:00
"testRunner": "dotnet-test-xunit"
2015-12-10 04:48:40 +03:00
}
```
To run tests from the command line, use the following.
```Shell
# Restore NuGet packages
2016-01-18 01:51:42 +03:00
dotnet restore
2015-12-10 04:48:40 +03:00
# Run tests in current directory
2016-01-18 01:51:42 +03:00
dotnet test
2015-12-10 04:48:40 +03:00
# Run tests if tests are not in the current directory
2016-01-18 01:51:42 +03:00
dotnet -p path/to/project test // not yet implemented
2015-12-10 04:48:40 +03:00
```
### More Information
2016-01-18 01:51:42 +03:00
For more complete example usage, please see [Getting Started with xUnit.net and CoreCLR / ASP.NET 5 ](http://xunit.github.io/docs/getting-started-coreclr.html ).