About 8,310 results
Open links in new tab
  1. Home | xUnit.net

    xUnit.net is a free, open source, community-focused unit testing tool for C#, F#, and Visual Basic. xUnit.net v3 supports .NET 8.0 or later, and .NET Framework 4.7.2 or later.

  2. Getting Started with xUnit.net v3

    Getting Started with xUnit.net v3 2025 August 13 In this document, we will demonstrate getting started with xUnit.net v3 when targeting .NET 8 (or later) and/or .NET Framework 4.7.2 (or …

  3. What's New in v3? [2025 August 14] | xUnit.net

    This design was done so that third party assertion libraries did not need to create any hard dependencies on xUnit.net, as most are designed to be cross-test framework. When …

  4. Sharing Context between Tests - xUnit.net

    It is common for unit test classes to share setup and cleanup code (often called "test context"). xUnit.net offers several methods for sharing this setup and cleanup code, depending on the …

  5. Microsoft Testing Platform [2025 November 2] | xUnit.net

    Unlike our support for VSTest, our support for Microsoft Testing Platform is built natively into xUnit.net v3. If you want to rely solely on Microsoft Testing Platform support, you can remove …

  6. Running Tests in Parallel - xUnit.net

    It generally contains very little knowledge about how the test frameworks work, and instead relies on the xUnit.net runner utility library to do most of the heavy lifting.

  7. Config with xunit.runner.json [2025 July 30] | xUnit.net

    The current schema is online at https://xunit.net/schema/current/xunit.runner.schema.json, which can be set in the JSON file to aid with intellisense from development IDEs like Visual Studio …

  8. Capturing Output - xUnit.net

    xUnit.net v1 always captured output from Console, Debug, and Trace. xUnit.net v2 removed this ability and replaced it with an injectable ITraceOutputHelper that could be used to capture …

  9. Code Coverage with MTP [2025 May 2] | xUnit.net

    With the new Microsoft Testing Platform support (MTP) in xUnit.net v3, getting code coverage has changed when running with MTP. This document discusses how to enable code coverage for …

  10. Config with RunSettings (VSTest) [2025 July 30] | xUnit.net

    All values list the minimum version of xunit.runner.visualstudio that is required to support the configuration value (previous versions will ignore unknown configuration values).