Top 17 C# unit-testing Projects
xUnit.net is a free, open source, community-focused unit testing tool for the .NET Framework.Project mention: Implementing a Clean Architecture in ASP.NET Core 6 | dev.to | 2022-02-03
:cake: Cake (C# Make) is a cross platform build automation system.Project mention: Achieving single command Infrastructure deployment using PowerShell DSC. | dev.to | 2022-04-08
You may use other tools too: psake, make, cake, fake or any other *ake you are familiar with. I look at them as a tools that make build tasks behind simple commands and help me answer: How did I run that code again?
Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
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
Cross Platform C# web crawler framework built for speed and flexibility. Please star this project! +1.Project mention: Can you build a web crawler in c#? | reddit.com/r/learnprogramming | 2022-04-11
This can be done perfectly well in c#, https://github.com/sjdirect/abot for example.
Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).Project mention: Eve Online fans cheer Microsoft Excel features at annual Fanfest | news.ycombinator.com | 2022-05-10
A lot of Runescape resource to XP / hours calculators. What they really need to do is replace VBA with a proper programming interface. Rubberduck VBA  Adds some essential features into the VBA IDE but they really just need to add C# support directly.
Machine.Specifications is a Context/Specification framework for .NET that removes language noise and simplifies tests.Project mention: Show HN: A C# library to help you enforce a Given-When-Then structured Unit test | news.ycombinator.com | 2021-08-29
Looks like a similar concept to https://github.com/machine/machine.specifications which I used many years ago to try and achieve BDD style unit testing.
One point to note from your introduction was the following statement:
Visual Studio Test Platform is the runner and engine that powers test explorer and vstest.console.Project mention: Integrating VSTest | reddit.com/r/dotnet | 2022-05-07
I've had success creating my own logger by following this guide on the vsdocs github. Nowadays you don't have to deploy the assemblies for the custom logger to the vs install folders. vstest will scan the build output directory for assemblies that match the specified pattern, *.testlogger.dll. You can also specify the path for custom test adapters either from the command line or a runsettings file using the TestAdapterPath option (this is only available since v15.1 but you mentioned you've tried the html logger and I think that's much newer than v15.1). If you get stuck with the implementation you can try referring to vstest's own loggers: htmllogger, trxlogger.
Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.
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: Discussing Blazor Designs & bUnit Stub Feature | reddit.com/r/dotnet | 2021-10-29
✅ List of Automated Testing (TDD/BDD/ATDD/SBE) Tools and Frameworks for .NETProject mention: Proper Rest API Load Testing | reddit.com/r/dotnet | 2022-04-06
Here a list of testing tools for dotnet: https://github.com/dariusz-wozniak/List-of-Testing-Tools-and-Frameworks-for-.NET
Lightweight and Extensible Infrastructure for Building Web Applications - Web Application FrameworkProject mention: Web API frameworks/boilerplates | reddit.com/r/dotnet | 2021-09-26
.NET library for easier testing of system APIs.
*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)
A simple, cross platform, command line tool to test MSSQL proceduresProject mention: sql testing tool | reddit.com/r/SQLServer | 2022-02-17
So, after some thinking, I made this: Geims83/qest: A simple, cross platform, command line tool to test MSSQL procedures (github.com) As the description goes, it's a (.net) command line tool to test procedures call by defining test files in yaml format.
📺 A simple movie search app based on TMDB APIs and YouTube APIs to search movies and tv-show and related trailers with using .Net 6, Vertical Slice Architecture, MediatR, CQRS and some resiliency mechanism.Project mention: Movie Search Application: 📺 A simple movie search application based on TMDB APIs and YouTube APIs to search movies and tv-show and related trailers with using .Net 6, Vertical Slice Architecture, MediatR, CQRS and some resiliency mechanism. | reddit.com/r/dotnet | 2021-12-13
This application is a thesaurus app for defining and searching some words and their meanings, synonyms built on top of a vertical slice architecture, cqrs, mongodb and unit and integration testing in backend and using angular in frontend.Project mention: Thesaurus-Sample: This application is a thesaurus app for defining and searching some words and their meanings, synonyms built on top of a vertical slice architecture, cqrs, mongodb and full coverage of unit and integration testing in backend and using angular in frontend. | reddit.com/r/softwarearchitecture | 2021-10-13
Unit Testing Workshop for BeginnersProject mention: Don't duplicate logic in Asserts: The most common mistake on unit testing | dev.to | 2021-11-08
Let's write some tests for Stringie, a (fictional) library to manipulate strings with a fluent interface. Stringie has a Remove() method to remove substrings from the end of a string.
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)Project mention: When do you consider your unit tests be "enough"? | reddit.com/r/dotnet | 2021-06-16
Because of the above I've generally been using tools like Stryker.NET and FsCheck to augment my testing suite. I'm still doing unit testing to find the more obvious "I haven't had my coffee, let's make sure I'm doing what I think I'm doing" bugs. I'm just using things like mutation testing, property testing, fuzzing, etc. to find the deeper issues in my code. There's a ton of libraries out there, including one that I've built for myself to help with testing but FsCheck and Stryker are just beautiful. And if you're interested in fuzzing, SharpFuzz is a great option. But that one isn't quite as easy of an on ramp compared to the other two that I mentioned.
C# unit-testing related posts
3 projects | reddit.com/r/dotnet | 7 May 2022
Pick your class
1 project | reddit.com/r/ProgrammerHumor | 26 Jan 2022
Clean Code in C# Part 7 Unit Tests
1 project | dev.to | 10 Jan 2022
Getting Started with Unit Testing in Visual Studio 2022 - nUnit
2 projects | reddit.com/r/dotnet | 5 Jan 2022
How to run async method inside a class method
2 projects | reddit.com/r/csharp | 14 Dec 2021
Clean Architecture Solution Template
2 projects | dev.to | 25 Nov 2021
Writing tests for CLI tool
3 projects | dev.to | 14 Nov 2021
What are some of the best open-source unit-testing projects in C#? This list will help you:
Are you hiring? Post a new remote job listing for free.