coreclr.xunit/README.md

37 строки
1.1 KiB
Markdown
Исходник Постоянная ссылка Обычный вид История

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>
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)).
![](https://mseng.visualstudio.com/_apis/public/build/definitions/d09b7a4d-0a51-4c0e-a15a-07921d5b558f/3249/badge)
### 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-*"
},
2016-01-18 01:51:42 +03:00
"testRunner": "dotnet-test-xunit"
}
```
To run tests from the command line, use the following.
```Shell
# Restore NuGet packages
2016-01-18 01:51:42 +03:00
dotnet restore
# Run tests in current directory
2016-01-18 01:51:42 +03:00
dotnet test
# 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
```
### 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).