liveBook · Manning

Dotnet test

dotnet test is a .NET CLI command that builds a project or solution and discovers and executes its tests.

How 2 Manning books explain it

.NET in Action, Second Edition

dotnet test is a .NET CLI command that builds a test project, discovers its tests, and executes them.

How it is used
Runs xUnit tests after library or API test projects are scaffolded.
How deep it goes
Shows project setup, test execution, and failure output, but gives no command-option reference.
Examples
Uses Sudoku board-validity assertions and an HTTP OK response test against a controller.
What you can do after
Operate/configure it to run xUnit projects and use assertion failures to locate a failing test.

Read how .NET in Action, Second Edition explains dotnet test →

ASP.NET Core in Action, 3e

dotnet test is a .NET CLI command that restores and builds a test project and then runs its tests.

How it is used
Runs automated tests from .NET test projects through the command line or Visual Studio.
How deep it goes
Explains project scope, restore and build behavior, and test-runner integration without detailing individual test implementation.
Examples
Uses a dotnet test command, project-folder and solution-folder execution, and Visual Studio Test Explorer as concrete examples.
What you can do after
Operate/configure it to restore, build, and execute tests for a project or solution.

Read how ASP.NET Core in Action, 3e explains dotnet test →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.