Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free. Learn more →
Top 23 C# unit-testing Projects
-
The git repo has other runners. AssemblyRunner appears to be the best fit for an already compiled tests project, but there is a runner that can be wrapped into an MSBuild task for example.
-
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 -
abot
Cross Platform C# web crawler framework built for speed and flexibility. Please star this project! +1.
-
Project mention: In a world that runs on Excel, why should I as an engineer learn python? | reddit.com/r/AskEngineers | 2023-05-11
-
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-13As suggested by /u/whyvra +1 for bUnit.
-
Machine.Specifications
Machine.Specifications is a Context/Specification framework for .NET that removes language noise and simplifies tests.
-
ONLYOFFICE
ONLYOFFICE Docs — document collaboration in your environment. Powerful document editing and collaboration in your app or environment. Ultimate security, API and 30+ ready connectors, SaaS or on-premises
-
vstest
Visual Studio Test Platform is the runner and engine that powers test explorer and vstest.console.
Project mention: Pressing CTRL+C while reading user input (Console.ReadLine) has a weird issue. | reddit.com/r/csharp | 2022-06-22Another commenter in your first post linked you to a bug report. The original bug was a sporadic one with dotnet test. But commenters added more reliable cases, and cases for other dotnet commands.
-
Onion-architecture-ASP.NET-Core
WhiteApp API solution template which is built on Onion Architecture with all essential feature using .NET 5!
-
List-of-Testing-Tools-and-Frameworks-for-.NET
✅ List of Automated Testing (TDD/BDD/ATDD/SBE) Tools and Frameworks for .NET
-
DNTFrameworkCore
Lightweight and Extensible Infrastructure for Building Web Applications - Web Application Framework
-
Moq.Contrib.HttpClient
A set of extension methods for mocking HttpClient and IHttpClientFactory with Moq.
-
Project mention: Why aren’t there a lot of remote controls/automation positions like there is in IT and web development? I think there should be more remote positions in this field due to the fact that we are practically on the computer all day. | reddit.com/r/PLC | 2022-12-08
Look into tcunit; it's for Beckhoff not AB but has the general principles you'd want to have in a PLC unit test framework: https://github.com/tcunit/TcUnit.
-
-
SimpleStubs
*SimpleStubs* is a simple mocking framework that supports Universal Windows Platform (UWP), .NET Core and .NET framework. SimpleStubs is currently developed and maintained by Microsoft BigPark Studios in Vancouver. (by microsoft)
-
movie-search-application
🎬 A simple movie search app, built with .Net 7, Vertical Slice Architecture and using TMDB APIs and YouTube APIs for searching and details of the movies.
-
StoreCleanArchitecture-NET
This is a basic project to demonstrate an introduction about the implementation of Clean Architecture on .NET
-
-
Project mention: do you support putting business logic in SQL server while building applications using .net6 and dapper and er core | reddit.com/r/dotnet | 2022-12-08
Actually, you can version control the schema! Just store your sql script for entity creation in git, and deploy with dacpacs and sqlpackage. As for the tests, I'll do a little bit of self promotion here: https://github.com/Geims83/qest (feedback is welcome)
-
-
Mecha
Mecha is a library designed to test your code in ways you probably never thought of before. It automatically finds edge cases and exceptions in your code with no input needed. Just point it at a class or method and fire away. It's even better than a cat laying on your keyboard at finding weird data for your tests. (by JaCraig)
-
Please find the complete code at https://github.com/MarkusMeyer13/azure.functions.tables
-
CodiumAI
TestGPT | Generating meaningful tests for busy devs. Get non-trivial tests (and trivial, too!) suggested right inside your IDE, so you can code smart, create more value, and stay confident when you push.
C# unit-testing related posts
- Running a XUnit test with C#?
- Integration tests for AWS serverless solution
- NUnit vs XUnit for .net6+ microservices
- Creating Your Own Custom Attributes in C# and Retrieving Their Values
- do you support putting business logic in SQL server while building applications using .net6 and dapper and er core
- Is putting business logic in stored procedure a good Idea?
- Is there any way to test a project within another project in c#?
-
A note from our sponsor - SonarQube
www.sonarqube.org | 30 May 2023
Index
What are some of the best open-source unit-testing projects in C#? This list will help you:
Project | Stars | |
---|---|---|
1 | xUnit | 3,700 |
2 | Cake | 3,581 |
3 | Fluent Assertions | 3,250 |
4 | abot | 2,072 |
5 | Rubberduck | 1,754 |
6 | bUnit | 889 |
7 | Machine.Specifications | 864 |
8 | vstest | 774 |
9 | Onion-architecture-ASP.NET-Core | 690 |
10 | List-of-Testing-Tools-and-Frameworks-for-.NET | 448 |
11 | DNTFrameworkCore | 285 |
12 | Moq.Contrib.HttpClient | 176 |
13 | TcUnit | 164 |
14 | SystemWrapper | 164 |
15 | SimpleStubs | 66 |
16 | movie-search-application | 25 |
17 | StoreCleanArchitecture-NET | 21 |
18 | GenWrap | 9 |
19 | qest | 7 |
20 | Testing101 | 6 |
21 | Mecha | 1 |
22 | Mohamad-Lawand | 1 |
23 | azure.functions.tables | 1 |