C# unit-testing

Open-source C# projects categorized as unit-testing | Edit details

Top 17 C# unit-testing Projects

  • xUnit

    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

    xUnit

  • Cake

    :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?

  • Scout APM

    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.

  • 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: [Parte 8] ASP.NET Core: Integration Tests | dev.to | 2022-04-13

    FluentAssertions para Asserts muy flexibles y entendibles

  • abot

    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.

  • Rubberduck

    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 [1] Adds some essential features into the VBA IDE but they really just need to add C# support directly.

    [1]: https://rubberduckvba.com/

  • Machine.Specifications

    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:

  • vstest

    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.

  • SonarLint

    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

    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-Testing-Tools-and-Frameworks-for-.NET

    ✅ List of Automated Testing (TDD/BDD/ATDD/SBE) Tools and Frameworks for .NET

    Project 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

  • DNTFrameworkCore

    Lightweight and Extensible Infrastructure for Building Web Applications - Web Application Framework

    Project mention: Web API frameworks/boilerplates | reddit.com/r/dotnet | 2021-09-26
  • SystemWrapper

    .NET library for easier testing of system APIs.

  • 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)

  • qest

    A simple, cross platform, command line tool to test MSSQL procedures

    Project 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.

  • movie-search-application

    📺 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
  • thesaurus-application

    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
  • Testing101

    Unit Testing Workshop for Beginners

    Project 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

    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.

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 2022-05-10.

C# unit-testing related posts

Index

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

Project Stars
1 xUnit 3,296
2 Cake 3,289
3 Fluent Assertions 2,743
4 abot 2,006
5 Rubberduck 1,583
6 Machine.Specifications 832
7 vstest 703
8 bUnit 703
9 List-of-Testing-Tools-and-Frameworks-for-.NET 358
10 DNTFrameworkCore 252
11 SystemWrapper 160
12 SimpleStubs 66
13 qest 7
14 movie-search-application 5
15 thesaurus-application 3
16 Testing101 3
17 Mecha 0
Find remote jobs at our new job board 99remotejobs.com. There are 9 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com