xUnit.net runner for CoreCLR unit test projects
Перейти к файлу
Piotr Puszkiewicz 81eada86e2 Merge pull request #36 from dotnet/Dependencies002702
Dependencies 002702
2016-05-13 11:27:46 -07:00
src/dotnet-test-xunit Bump dependencies 002700->002702 2016-05-13 11:17:29 -07:00
test/dotnet-test-xunit.Tests Bump dependencies 002700->002702 2016-05-13 11:17:29 -07:00
.gitattributes Initial revision. 2015-12-09 16:28:07 -08:00
.gitignore Download install scripts from CLI repo 2016-05-07 13:53:22 +03:00
CONTRIBUTING.md Initial commit of dotnet-test-xunit prototype 2015-12-09 17:48:40 -08:00
NuGet.Config Use the release AspNet feed 2016-04-15 07:59:39 -07:00
README.md Update README.md 2016-04-07 13:03:18 -07:00
build.ps1 Download install scripts from CLI repo 2016-05-07 13:53:22 +03:00
build.sh Pass destination argument to install script 2016-05-09 23:23:12 +03:00
dotnet-test-xunit.sln Fix naming of test project 2016-05-06 01:35:42 -07:00
global.json react to DependencyContext changes 2016-03-25 15:16:07 -07:00
license.txt License update 2016-05-06 00:21:15 -07:00

README.md

This runner supports xUnit.net tests for dotnet 4.5.1+, and dotnet Core 5+ (this includes ASP.NET 5+).

Usage

To install this package, ensure your project.json contains the following lines:

{
    "dependencies": {
        "xunit": "2.1.0-*",
        "dotnet-test-xunit": "2.1.0-*"
    },
    "testRunner": "dotnet-test-xunit"
}

To run tests from the command line, use the following.

# Restore NuGet packages
dotnet restore

# Run tests in current directory
dotnet test

# Run tests if tests are not in the current directory
dotnet -p path/to/project test // not yet implemented

More Information

For more complete example usage, please see Getting Started with xUnit.net and CoreCLR / ASP.NET 5.