Skip to Content
C# and .NET Core Test-Driven Development
book

C# and .NET Core Test-Driven Development

by Ayobami Adewole
May 2018
Intermediate to advanced content levelIntermediate to advanced
300 pages
7h 35m
English
Packt Publishing
Content preview from C# and .NET Core Test-Driven Development

Executing xUnit.net tests in .NET projects

Cake has a rich support for running xUnit.net tests. Cake has two aliases for running the different versions of xUnit.net tests—xUnit for running earlier versions of xUnit.net and xUnit2 for Version 2 of xUnit.net. To use commands for the alias, the ToolPath to xUnit.net must be specified within the XUnit2Settings class or include the tool directive in the build.cake file, to instruct Cake to get the binaries required to run xUnit.net tests from NuGet.

Here is the syntax for including the tool directive for xUnit.net:

#tool "nuget:?package=xunit.runner.console"

Cake's XUnit2Alias is overloaded with different forms for running the xUnit.net version tests in the specified assemblies. The alias resides ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Design Patterns with C# and .NET Core

Hands-On Design Patterns with C# and .NET Core

Gaurav Aroraa, Jeffrey Chilberto
.NET Core in Action

.NET Core in Action

Dustin Metzgar

Publisher Resources

ISBN: 9781788292481Supplemental Content