Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →
Top 23 Xunit Open-Source Projects
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
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.
-
AutoFixture
AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximize maintainability. Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test scenario, by making it easier to create object graphs containing test data.
-
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
-
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.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
venom
🐍 Manage and run your integration tests with efficiency - Venom run executors (script, HTTP Request, web, imap, etc... ) and assertions (by ovh)
-
Xunit.Gherkin.Quick
BDD in .NET Core - using Xunit and Gherkin (compatible with both .NET Core and .NET)
-
TestExamplesDotnet
Showing how you can easily setup fast and easy to run more complex tests such as api tests or browser tests in .NET
-
xunit-dependency-injection
:fire: A small library to help .NET developers leverage Microsoft's dependency injection framework in their Xunit-powered test projects
-
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.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Several well-known NuGet packages such as xUnit.net, FluentAssertions, StyleCop, Entity Framework Core, and others include by default a significant number of Roslyn analyzers. They help you adhere to the conventions and best practices of these libraries.
Yes, it does feel like some of the "standard stuff" in other more nuanced languages are missing (especially miss AutoFixture ngl). Some of those are a conscious decison by the golang team for example.
Project mention: Ask HN: What's your favorite software testing framework and why? | news.ycombinator.com | 2023-05-21You can also load fixtures in database directly, work with Kafka queues both as a producer (e.g. write an event to a Kafka queue, wait a few seconds and see that it was consumed by the service you test, and that some side effects can be observed) or as a consumer (e.g. make sure after an HTTP call, an event was correctly pushed to a queue), or even read a mailbox in IMAP to check that your service correctly send an email.
It's a bit rough on the edges sometimes, but I'd never go back on writing integration tests directly in my programming language. Declarative is the way to go.
[1]: https://github.com/ovh/venom
Several well-known NuGet packages such as xUnit.net, FluentAssertions, StyleCop, Entity Framework Core, and others include by default a significant number of Roslyn analyzers. They help you adhere to the conventions and best practices of these libraries.
This is a continuation of an earlier post Integration Testing Postgres Store. In this tutorial I will extend the sample to use testcontainers-dotnet to spin up database container and apply migrations before executing our integration tests.
Xunit related posts
- Optimizing C# code analysis for quicker .NET compilation
- Integration testing in Umbraco 10+: Validating document types
- Comprehensive Unit Testing: A Line-by-Line Approach
- FluentValidation in .NET
- Running a XUnit test with C#?
- I need a place to post programming questions
- NUnit vs XUnit for .net6+ microservices
-
A note from our sponsor - InfluxDB
www.influxdata.com | 29 Apr 2024
Index
What are some of the best open-source Xunit projects? This list will help you:
Project | Stars | |
---|---|---|
1 | bats-core | 4,621 |
2 | xUnit | 4,020 |
3 | Cake | 3,818 |
4 | Fluent Assertions | 3,593 |
5 | AutoFixture | 3,219 |
6 | SpecFlow | 2,206 |
7 | bUnit | 1,064 |
8 | venom | 974 |
9 | bash_unit | 575 |
10 | LightBDD | 338 |
11 | snapshooter | 286 |
12 | Xunit.Gherkin.Quick | 190 |
13 | fluentassertions.analyzers | 128 |
14 | reporter | 74 |
15 | TestExamplesDotnet | 53 |
16 | xRetry | 40 |
17 | xunit-dependency-injection | 37 |
18 | tic-tac-toe-csharp-playground | 37 |
19 | testcontainers-dotnet | 33 |
20 | DbSample | 9 |
21 | EnvironmentDetector | 9 |
22 | fsharp-hedgehog-xunit | 8 |
23 | GenWrap | 8 |
Sponsored