Top 23 C# Testing Projects
-
Bogus
:card_index: A simple and sane fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.
-
Moq
Repo for managing Moq 4.x
The tests used Moq, a mocking library for .NET. I already wrote about the things I like and dislike about Moq. Let's see the two issues with this test.
-
Uno Platform
Pixel-Perfect Multi-Platform Applications with C# and XAML. Build single-codebase applications for Windows, Web, Linux, macOS, iOS and Android with open-source Uno Platform. Fluent and Material design included in-the-box. Try now via 3 min tutorial.
-
xUnit
xUnit.net is a free, open source, community-focused unit testing tool for the .NET Framework.
-
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.
Project mention: LPT: There is a library called Bogus, you should know it exists much earlier than I did in my career. | reddit.com/r/csharp | 2021-02-07 -
Fluent Assertions
Fluent API for asserting the results of unit tests that targets .NET Framework 4.5, 4.7, .NET Standard 1.3, 1.6 and 2.0. Supports the unit test frameworks MSTest, MSTest2, Gallio, NUnit, XUnit, MBunit, MSpec, and NSpec.
fluentassertions / fluentassertions
-
NUnit
NUnit 3 Framework
-
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
-
Scout
Get performance insights in less than 4 minutes. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
-
NSubstitute
A friendly substitute for .NET mocking libraries.
nsubstitute / NSubstitute
-
Shouldly
Should testing for .NET - the way Asserting *Should* be!
-
ReportGenerator
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.
danielpalme / ReportGenerator
-
FakeItEasy
The easy mocking library for .NET
-
FlaUI
UI automation library for .Net
Maybe try this: https://github.com/FlaUI/FlaUI
-
Machine.Specifications
Machine.Specifications is a Context/Specification framework for .NET that removes language noise and simplifies tests.
-
GenFu
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.
-
Compare-Net-Objects
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.
-
Fixie
Ergonomic Testing for .NET
-
Stryker.NET
Mutation testing for .NET core and .NET framework!
-
MSTest
MSTest V2 framework and adapter
-
xBehave.net
✖ An xUnit.net extension for describing each step in a test with natural language.
-
BDDfy
BDDfy is the simplest BDD framework EVER!
-
Atata
C#/.NET test automation framework for web
-
NFluent
Smooth your .NET TDD experience with NFluent! NFluent is an ergonomic assertion library which aims to fluent your .NET TDD experience (based on simple Check.That() assertion statements). NFluent aims your tests to be fluent to write (with a super-duper-happy 'dot' auto-completion experience), fluent to read (i.e. as close as possible to plain English expression), but also fluent to troubleshoot, in a less-error-prone way comparing to the classical .NET test frameworks. NFluent is also directly i
-
NSpec
A battle hardened testing framework for C# that's heavily inspired by Mocha and RSpec.
Index
What are some of the best open-source Testing projects in C#? This list will help you:
Project | Stars | |
---|---|---|
1 | Bogus | 4,121 |
2 | Moq | 3,883 |
3 | xUnit | 2,808 |
4 | AutoFixture | 2,189 |
5 | Fluent Assertions | 2,072 |
6 | NUnit | 1,997 |
7 | SpecFlow | 1,676 |
8 | NSubstitute | 1,499 |
9 | Shouldly | 1,496 |
10 | ReportGenerator | 1,234 |
11 | FakeItEasy | 1,075 |
12 | FlaUI | 867 |
13 | Machine.Specifications | 803 |
14 | GenFu | 640 |
15 | Compare-Net-Objects | 577 |
16 | Fixie | 554 |
17 | Stryker.NET | 481 |
18 | MSTest | 385 |
19 | xBehave.net | 363 |
20 | BDDfy | 358 |
21 | Atata | 353 |
22 | NFluent | 276 |
23 | NSpec | 241 |