xunit.net Open in urlscan Pro
185.199.111.153  Public Scan

Submitted URL: http://xunit.net/
Effective URL: https://xunit.net/
Submission Tags: tranco_l324
Submission: On June 02 via api from DE — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

ABOUT XUNIT.NET

xUnit.net is a free, open source, community-focused unit testing tool for the
.NET Framework. Written by the original inventor of NUnit v2, xUnit.net is the
latest technology for unit testing C#, F#, VB.NET and other .NET languages.
xUnit.net works with ReSharper, CodeRush, TestDriven.NET and Xamarin. It is part
of the .NET Foundation, and operates under their code of conduct. It is licensed
under Apache 2 (an OSI approved license).

> Follow: xUnit.net on Mastodon, James Newkirk, Brad Wilson, Claire Novotny
> Discussions are held on our discussions site.
> Resharper support is provided and supported by JetBrains.
> CodeRush support is provided and supported by DevExpress.
> NCrunch support is provided and supported by Remco Software.
> The xUnit.net logo was designed by Nathan Young.


TABLE OF CONTENTS

 * Current Releases
 * Documentation
 * Test Runner Compatibility
 * Github Projects
 * Links to Resources
 * Sponsors
 * Additional copyrights


CURRENT RELEASES

Stable Latest CI Build status v2 core framework v3 core framework (alpha docs)
N/A xunit.analyzers xunit.runner.visualstudio


LATEST STABLE RELEASE NOTES

v2 core framework 2.8.1 (all releases) xunit.analyzers 1.14.0 (all releases)
xunit.runner.visualstudio 2.8.1 (all releases)


DOCUMENTATION


GETTING STARTED

New to xUnit.net? These guides will help you get started.

 * .NET Core & .NET 5+ – cross-platform applications, including ASP.NET Core
   * Using command line (cross-platform)
   * Using Visual Studio (Windows)
 * .NET Framework – Windows desktop & server applications, including ASP.NET
   * Using command line (cross-platform)
   * Using Visual Studio (Windows)
   * Using JetBrains Rider (cross-platform)
 * Miscellaneous Topics
   * What NuGet packages should I use?
   * How do I use a CI build NuGet package?
   * xUnit.net analyzer documentation
   * Multi-targeting on non-Windows OSes


CONFIGURATION

 * Configuration files (aka xunit.runner.json)
 * RunSettings and xunit.runner.visualstudio
 * What is the JSON schema for xunit.runner.json?


UNIT TEST PARALLELISM

 * Running tests in parallel
 * Sharing context between tests (class and collection fixtures)


OTHER TOPICS

 * Sample projects (including testing and extensibility)
 * Capturing output
 * Equality with hash sets vs. linear containers
 * Running tests in MSBuild
 * Getting Test Results in TeamCity
 * Getting Test Results in CruiseControl.NET
 * Getting Test Results in Azure DevOps


FREQUENTLY ASKED QUESTIONS

 * Why did we build xUnit 1.0?
 * What is the format of the XML generated by the test runners?
 * Comparing xUnit.net to other frameworks
 * Building xUnit.net
 * Why doesn't xUnit.net support netstandard?
 * Theory data stability


MIGRATION

 * Migrating unit tests from v1 to v2
 * Where to find code that used to live in xunit.extensions
 * Migrating from MSTest to xUnit.net


TEST RUNNER COMPATIBILITY

  xUnit.net xunit.console MSBuild TestDriven.NET Visual Studio 2 Devices .NET
Framework
(Windows) 1.9.2+ ✓ 3a ✓ 3a ✓ 3a ✓ 3b   .NET Core & .NET 5+
(Windows, Linux, macOS) 2.2+       ✓ 3b     ↓ The project types below have been
officially deprecated ↓ Universal Application
(Windows 8.1, Windows Phone 8.1) 2.0 - 2.1       ✓ 3b ✓ 3c Universal Windows
Platform 2.1 - 2.4.2       ✓ 3b ✓ 3c Windows Phone 8 (Silverlight) 2.0 - 2.1    
    ✓ 3c Xamarin iOS Unified 1 2.0 - 2.4.2         ✓ 3c Xamarin MonoAndroid 1
2.0 - 2.4.2         ✓ 3c Xamarin MonoTouch (iOS Classic) 1 2.0 - 2.1         ✓
3c
Requires Xamarin for Visual Studio or Xamarin Studio. Visual Studio support
includes the Visual Studio Test Explorer, Visual Studio Code,
vstest.console.exe,
and dotnet test. Express editions of Visual Studio are not supported. Test
runner source code availability:
a. https://github.com/xunit/xunit
b. https://github.com/xunit/visualstudio.xunit
c. https://github.com/xunit/devices.xunit



GITHUB PROJECTS

For information on contributing to xUnit.net, please read the governance
document.

 * xUnit.net (core framework, built-in runners)
 * Assertion library
 * Analyzers
 * Visual Studio runner (Visual Studio, Visual Studio Code, dotnet test)
 * Media files
 * This site


LINKS TO RESOURCES

 * Visual Studio Community
 * .NET Framework 4.5.2
 * TestDriven.NET
 * MSBuild Reference




SPONSORS

Special thanks to the .NET on AWS Open Source Software Fund for sponsoring the
ongoing development of xUnit.net.



Help support this project by becoming a sponsor through GitHub Sponsors.


ADDITIONAL COPYRIGHTS

Portions copyright The Legion Of The Bouncy Castle

COPYRIGHT © 2024 .NET FOUNDATION. CONTRIBUTIONS WELCOMED AT
HTTPS://GITHUB.COM/XUNIT/XUNIT/TREE/GH-PAGES.