C# Xunit

Open-source C# projects categorized as Xunit

Top 16 C# Xunit Projects

  • xUnit

    xUnit.net is a free, open source, community-focused unit testing tool for .NET.

    Project mention: NUnit vs XUnit for .net6+ microservices | reddit.com/r/dotnet | 2023-03-01

    Attachments: At this time you still cannot attach files to test runs, although the functionality finally is coming in V3!

  • Cake

    :cake: Cake (C# Make) is a cross platform build automation system.

    Project mention: Unpopular opinion: CI/CD engines are an awful idea | reddit.com/r/devops | 2023-02-04

    This is why 90-99% of our builds are done with Cake. It isolates all of it and you can run the build locally if you want.

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • 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, as well as .NET Core 2.1, .NET Core 3.0, .NET 6, .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.

    Project mention: Integration tests without API dependencies with ASP.NET Core and WireMock.Net | dev.to | 2022-12-20
  • SpecFlow

    #1 .NET BDD Framework. SpecFlow automates your testing & works with your existing code. Find Bugs before they happen. Behavior Driven Development helps developers, testers, and business representatives to get a better understanding of their collaboration

    Project mention: Specflow on Docker | reddit.com/r/selenium | 2022-09-13

    Or here... https://github.com/SpecFlowOSS/SpecFlow/blob/master/Dockerfile

  • bUnit

    bUnit is a testing library for Blazor components that make tests look, feel, and runs like regular unit tests. bUnit makes it easy to render and control a component under test’s life-cycle, pass parameter and inject services into it, trigger event handlers, and verify the rendered markup from the component using a built-in semantic HTML comparer.

    Project mention: Integration Testing on a Blazor Front End. What's Up? | reddit.com/r/Blazor | 2022-06-13

    As suggested by /u/whyvra +1 for bUnit.

  • LightBDD

    BDD framework allowing to create easy to read and maintain tests.

  • snapshooter

    Snapshooter is a snapshot testing tool for .NET Core and .NET Framework

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • Xunit.Gherkin.Quick

    BDD in .NET Core - using Xunit and Gherkin (compatible with both .NET Core and .NET)

    Project mention: NUnit vs XUnit for .net6+ microservices | reddit.com/r/dotnet | 2023-03-01

    Extensible: Has some really good extension support. There are libs that provide some very interesting ways to use xunit, such as Xunit.Gherkin.Quick, xunit-spec, xunit-bdd, CoreBDD, and many others

  • tic-tac-toe-csharp-playground

    Another fun project just to update what I know about C# :video_game:

    Project mention: Discover issues with performance testing | dev.to | 2022-05-16

    We'll use the REST API Version of the Tic Tac Toe game that I have written using C#! Now let's see the performance test script. Ah! It's worth mention that I won't explain in detail each configuration step. JMeter has an excellent assistant feature. You just add a resource and click on the help icon. It will redirect you to the manual related to the same resource you added. It's awesome 😛. Thus, if you don't understand a given component, either go to the help page or comment below that I will happily help you 🤟.

  • xRetry

    Retry running tests via Xunit and Specflow

  • testcontainers-dotnet

    dotnet port of testcontainers-java (by isen-ng)

  • xunit-dependency-injection

    :fire: A small library to help .net developers leverage Microsoft's dependency injection framework in their test projects powered by Xunit

  • GenWrap

    Open source, source-generated unit testing extensions for .NET

    Project mention: Source-generated library for testing with JSON | reddit.com/r/csharp | 2023-02-12
  • DbSample

    Example of automated tests against SQL Server with EF Core

  • CaptureLogsInUnitTests

    Blog post

  • EnvironmentDetector

    Library that provides a simple way to detect whether your code is running in a test environment or not. It currently supports detecting MSTest, NUnit, and xUnit test frameworks.

    Project mention: TestsDetector - Detect MSTest, NUnit, and xUnit test frameworks. | reddit.com/r/dotnet | 2022-12-21
  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-03-01.

C# Xunit related posts


What are some of the best open-source Xunit projects in C#? This list will help you:

Project Stars
1 xUnit 3,645
2 Cake 3,549
3 Fluent Assertions 3,172
4 SpecFlow 2,070
5 bUnit 855
6 LightBDD 281
7 snapshooter 220
8 Xunit.Gherkin.Quick 176
9 tic-tac-toe-csharp-playground 31
10 xRetry 30
11 testcontainers-dotnet 26
12 xunit-dependency-injection 14
13 GenWrap 9
14 DbSample 7
15 CaptureLogsInUnitTests 3
16 EnvironmentDetector 1
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives