xUnit.net is a free, open source, community-focused unit testing tool for the .NET Framework. (by xunit)

xUnit Alternatives

Similar projects and alternatives to xUnit

  • GitHub repo NUnit

    xUnit VS NUnit

    NUnit 3 Framework

  • GitHub repo Fluent Assertions

    A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.7, .NET Core 2.1 and 3.0, as well as .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.

  • Smarter Code

    Your Free Guide to Become Microsoft Azure Certified. Get this free guide to learn about different Azure certifications, what fits your current role, preparation resources, and freelancing platforms for Azure professionals to earn income

  • GitHub repo MSTest

    xUnit VS MSTest

    MSTest V2 framework and adapter

  • GitHub repo Shouldly

    xUnit VS Shouldly

    Should testing for .NET - the way Asserting *Should* be!

  • GitHub repo Moq

    xUnit VS Moq

    Repo for managing Moq 4.x

  • GitHub repo Expecto

    xUnit VS Expecto

    A smooth testing lib for F#. APIs made for humans! Strong testing methodologies for everyone!

  • GitHub repo enquirer

    xUnit VS enquirer

    Stylish, intuitive and user-friendly prompts, for Node.js. Used by eslint, webpack, Generate, lint-staged, pm2, gluegun, hygen, GitHub Actions Toolkit, @airbnb/nimbus, and many others!

  • Scout APM

    Scout APM: A developer's best friend. Try free for 14-days. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.

  • GitHub repo Machine.Specifications

    Machine.Specifications is a Context/Specification framework for .NET that removes language noise and simplifies tests.

  • GitHub repo Fixie

    xUnit VS Fixie

    Ergonomic Testing for .NET

  • GitHub repo deno

    xUnit VS deno

    A modern runtime for JavaScript and TypeScript.

  • GitHub repo ua-parser-js

    xUnit VS ua-parser-js

    UAParser.js - Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data. Supports browser & node.js environment.

  • GitHub repo remarkable

    xUnit VS remarkable

    Markdown parser, done right. Commonmark support, extensions, syntax plugins, high speed - all in one. Gulp and metalsmith plugins available. Used by Facebook, Docusaurus and many others! Use https://github.com/breakdance/breakdance for HTML-to-markdown conversion. Use https://github.com/jonschlinkert/markdown-toc to generate a table of contents.

  • GitHub repo runtimelab

    This repo is for experimentation and exploring new ideas that may or may not make it into the main dotnet/runtime repo.

  • GitHub repo NSubstitute

    xUnit VS NSubstitute

    A friendly substitute for .NET mocking libraries.

  • GitHub repo terraform

    xUnit VS terraform

    Terraform enables you to safely and predictably create, change, and improve infrastructure. It is an open source tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.

  • GitHub repo Sentry

    xUnit VS Sentry

    Sentry is cross-platform application monitoring, with a focus on error reporting.

  • GitHub repo Graal

    xUnit VS Graal

    GraalVM: Run Programs Faster Anywhere :rocket:

  • GitHub repo Dapper

    xUnit VS Dapper

    Dapper - a simple object mapper for .Net [Moved to: https://github.com/DapperLib/Dapper] (by StackExchange)

  • GitHub repo AutoMapper

    xUnit VS AutoMapper

    A convention-based object-object mapper in .NET.

  • GitHub repo MediatR

    xUnit VS MediatR

    Simple, unambitious mediator implementation in .NET

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better xUnit alternative or higher similarity.

Suggest an alternative to xUnit

Reviews and mentions

Posts with mentions or reviews of xUnit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-25.
  • Clean Architecture Solution Template
    2 projects | dev.to | 25 Nov 2021
    The projects are all .NET 6 applications with nullable references types and implicit usings enabled. The unit testing projects use Xunit out of the box. There are also support files such as .gitignore, .editorconfig, etc.
  • Writing tests for CLI tool
    3 projects | dev.to | 14 Nov 2021
    The testing framework that I chose is XUnit. The first reason is that it is trendy compared to another test framework such as NUnits. I created test methods stub from the existing code by Create Unit Tests command. To use it with Xunit, I have to implement the XUnit.net.TestGenerator extension to my project.
  • Announcing .NET 6 — The Fastest .NET Yet
    9 projects | reddit.com/r/programming | 8 Nov 2021
    Tests is a xunit project to unit test your domain logic.
  • BREAKING!! NPM package ‘ua-parser-js’ with more than 7M weekly download is compromised
    32 projects | reddit.com/r/programming | 22 Oct 2021
    https://www.nuget.org/packages/Newtonsoft.Json/ https://www.nuget.org/packages/AutoMapper/ https://www.nuget.org/packages/Dapper/ https://www.nuget.org/packages/FluentValidation/ https://www.nuget.org/packages/FluentAssertions/ https://www.nuget.org/packages/NUnit/ https://www.nuget.org/packages/xunit/ https://www.nuget.org/packages/YamlDotNet/ https://www.nuget.org/packages/Moq/ That is simply not true. Mature c# projects purposely maintain no downstream dependencies and is they do, it's to a major reputable lib. See for yourself - these are staple third party packages commonly used. Anything dependency starting with System or NETStandard is Microsoft maintained.
  • Os 3 principais frameworks de testes que todo desenvolvedor .NET deveria conhecer
    3 projects | dev.to | 18 Oct 2021
  • Code Smell 91 - Test Asserts without Description
    1 project | dev.to | 8 Oct 2021
    XUnit: Assert Description Deprecation
  • Practical complex data for unit testing
    3 projects | dev.to | 9 Sep 2021
    To manage and run my unit tests I use xUnit. It is a popular, free, open source and community-focused unit testing framework. xUnit provides a few useful ways to manage our test data.
  • ASP.NET Core Unit Testing with FluentAssertions
    3 projects | dev.to | 21 Aug 2021
    A unit test is a way to test the smallest unit of the software. In almost all programming languages, this smallest unit is normally a function (method), a subroutine, or a property. When we do unit testing, we check whether a particular property has the expected value or a particular method is returning a value or result we are expecting it to return. There are many popular unit test frameworks available for almost all programming languages and all types of applications. The three most popular unit tests frameworks used by many .NET developers around the world are NUnit, xUnit, and MSTest. All of these frameworks have their pros and cons but they all have an extensive set of features for writing unit tests. These three unit test frameworks are so popular that Microsoft Visual Studio has built-in project templates for these frameworks.
  • Unit & Integration Testing In .Net With Moq and xUnit
    2 projects | dev.to | 14 Aug 2021
    Today I want to cover some simple testing setup and configuration. I'll be using my example project from the Dapper & CQRS post I made last week so consider this post a part 2. For tooling I'll be using xUnit and Moq as well as a few other nuget packages to easily configure and run tests in Visual Studio. I am working on a Mac, but operating system shouldn't matter.
  • C# Web API: How to call your endpoint through integration tests
    3 projects | dev.to | 13 Jul 2021
  • NUnit vs. XUnit vs. MSTest: Comparing Unit Testing Frameworks In C#
    3 projects | dev.to | 24 May 2021
    xUnit is created with more focus on the community; hence it is easy to expand upon. You can download xUnit from NuGet gallery. So far, there are close to 7,500 questions tagged as xUnit on Stackoverflow.
    3 projects | dev.to | 24 May 2021
    xUnit.Net is an open-source testing framework based on the .NET framework. ‘x’ stands for the programming language, e.g., JUnit, NUnit, etc. The creators of NUnit created xUnit as they wanted to build a better framework rather than adding incremental features to the NUnit framework.
  • What are some programming tools that every beginner programmer should know about?
    4 projects | reddit.com/r/learnprogramming | 6 May 2021
    https://docs.microsoft.com/en-us/dotnet/core/testing/unit-testing-with-dotnet-test https://xunit.net/
  • Automated Test in C#?
    2 projects | reddit.com/r/csharp | 23 Apr 2021
    Sure, there are the Microsofts own MSTest, then NUnit and XUnit and others. For Mocking you can use Moq and surely others I'm not familiar with.
  • Integration testing with EF Core, part 2
    3 projects | dev.to | 12 Apr 2021
    If you are using xUnit.net, you can probably achieve the same via a collection fixture, if you're on MSTest V2, you can probably use the [AssemblyInitialize] hook, you can find more info on StackOverflow


Basic xUnit repo stats
7 days ago

xunit/xunit is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.

Find remote C# jobs at our new job board 99remotejobs.com. There are 2 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.