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# Testing Projects
:card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.Project mention: library to generate fake IP addresses | reddit.com/r/dotnet | 2022-08-16
https://github.com/bchavez/Bogus might work for you.
Repo for managing Moq 4.xProject mention: I need a C# crash course for experienced developers | reddit.com/r/learncsharp | 2022-10-21
Static code analysis for 29 languages.. 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.
xUnit.net is a free, open source, community-focused unit testing tool for .NET.Project mention: Is there any way to test a project within another project in c#? | reddit.com/r/csharp | 2022-08-22
You can execute xunit programmatically, this is an example of how the console runner does it: https://github.com/xunit/xunit/blob/main/src/xunit.v3.runner.console/Program.cs
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: [Parte 8] ASP.NET Core: Integration Tests | dev.to | 2022-04-13
FluentAssertions para Asserts muy flexibles y entendibles
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.Project mention: I need a C# crash course for experienced developers | reddit.com/r/learncsharp | 2022-10-21
NUnit 3 FrameworkProject mention: Reduce your tests cognitive complexity with AutoFixture | dev.to | 2022-05-20
The setup here is really minimal, just create a new test project. I'll be using xUnit but NUnit should be fine too.
#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 collaborationProject mention: Specflow on Docker | reddit.com/r/selenium | 2022-09-13
Or here... https://github.com/SpecFlowOSS/SpecFlow/blob/master/Dockerfile
Delete the most useless function ever: context switching.. Zigi monitors Jira and GitHub updates, pings you when PRs need approval and lets you take fast actions - all directly from Slack! Plus it reduces cycle time by up to 75%.
ReportGenerator converts coverage reports generated by coverlet, OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov or lcov into human readable reports in various formats.Project mention: Analyzing and enforcing .NET code coverage with coverlet | dev.to | 2022-11-25
A friendly substitute for .NET mocking libraries.Project mention: Coincidence? I think not | reddit.com/r/ProgrammerHumor | 2022-11-17
it will change the URL from https://github.com/nsubstitute/NSubstitute to https://github.dev/nsubstitute/NSubstitute (or you can just nav there yourself).
Should testing for .NET—the way assertions should be!Project mention: I need a C# crash course for experienced developers | reddit.com/r/learncsharp | 2022-10-21
Shouldly - More "fluent" way of writing assertions that I tend to like more personally. Example:
Verify is a snapshot tool that simplifies the assertion of complex data models and documents.Project mention: organizing testing projects | reddit.com/r/csharp | 2022-09-14
Are you familiar with "snapshot testing" tools such as Verify that store expected output in files. It's still unit testing.
UI automation library for .NetProject mention: WPF UI testing | reddit.com/r/dotnet | 2022-10-06
I would suggest taking a look at FlaUI https://github.com/FlaUI/FlaUI
Mutation testing for .NET core and .NET framework!Project mention: Killing mutants to improve your tests | dev.to | 2022-11-07
There are tools that do this automatically, stryker is one of them. When you run stryker, it will create many mutant versions of your production code, and run your tests for each mutant (that's how mutations are called in stryker's' documentation) version of the code. If your tests fail then the mutant is killed. If your tests passed, the mutant survived. Let's have a look at the the result of runnning stryker against reffects-store's code:
The easy mocking library for .NET
Coyote is a library and tool for testing concurrent C# code and deterministically reproducing bugs.Project mention: Using Java's Project Loom to build more reliable distributed systems | news.ycombinator.com | 2022-05-09
If you're looking for similar concurrency testing in the dotnet world, checkout Coyote:
Testing layer for Microsoft's HttpClient library. Create canned responses using a fluent API.Project mention: Help: how to memory-host & test a unit-test controller/service? | reddit.com/r/dotnet | 2022-04-05
So if you need to mock http client you may want to look into a library like https://github.com/richardszalay/mockhttp
Just like System.Web.Abstractions, but for System.IO. Yay for testable IO access!Project mention: How to handle cross platform paths WHILE running on the opposite platform? | reddit.com/r/csharp | 2022-02-19
May be worth checking system.io.abstractions https://github.com/TestableIO/System.IO.Abstractions
Replace any .NET method (including static and non-virtual) with a delegate
WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on the functionality from http://WireMock.org, but extended with more functionality.Project mention: Fake apis for testing | reddit.com/r/dotnet | 2022-07-16
Recently was pointed to WireMock for testing purposes.
Machine.Specifications is a Context/Specification framework for .NET that removes language noise and simplifies tests.
What you have been waiting for :+1: Perform a deep compare of any two .NET objects using reflection. Shows the differences between the two objects.
GenFu is a library you can use to generate realistic test data. It is composed of several property fillers that can populate commonly named properties through reflection using an internal database of values or randomly created data. You can override any of the fillers, give GenFu hints on how to fill them.
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-22
Another 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.
Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.
C# Testing related posts
Analyzing and enforcing .NET code coverage with coverlet
3 projects | dev.to | 25 Nov 2022
Coincidence? I think not
2 projects | reddit.com/r/ProgrammerHumor | 17 Nov 2022
A tool to analyse architectural integrity of a code base
1 project | reddit.com/r/SoftwareEngineering | 16 Nov 2022
Help to show data on Code Coverage tab
1 project | reddit.com/r/azuredevops | 8 Nov 2022
Automation of Unit Testing
1 project | reddit.com/r/AskProgramming | 30 Oct 2022
I need a C# crash course for experienced developers
6 projects | reddit.com/r/learncsharp | 21 Oct 2022
A Tale of 2 Codebases (Part 2 of 4): Testability
3 projects | dev.to | 5 Oct 2022
A note from our sponsor - SonarQube
www.sonarqube.org | 30 Nov 2022
What are some of the best open-source Testing projects in C#? This list will help you: