Machine.Specifications
xUnit
Our great sponsors
Machine.Specifications | xUnit | |
---|---|---|
1 | 20 | |
832 | 3,296 | |
0.2% | 1.8% | |
3.3 | 8.7 | |
7 days ago | 6 days ago | |
C# | C# | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Machine.Specifications
-
Show HN: A C# library to help you enforce a Given-When-Then structured Unit test
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:
xUnit
-
Implementing a Clean Architecture in ASP.NET Core 6
xUnit
-
Clean Code in C# Part 7 Unit Tests
When creating unit tests readability should be a top priority. Analyze the following test created with xUnit.net:
- Getting Started with Unit Testing in Visual Studio 2022 - nUnit
-
How to run async method inside a class method
If you're using xUnit for your tests, you can implement the IAsyncLifetime interface it helpfully provides for you.
-
Clean Architecture Solution Template
The projects are all .NET 6 applications with nullable references types and implicit usings enabled. The unit testing projects use Xunit out of the box. There are also support files such as .gitignore, .editorconfig, etc.
-
Writing tests for CLI tool
The testing framework that I chose is XUnit. The first reason is that it is trendy compared to another test framework such as NUnits. I created test methods stub from the existing code by Create Unit Tests command. To use it with Xunit, I have to implement the XUnit.net.TestGenerator extension to my project.
-
Announcing .NET 6 — The Fastest .NET Yet
Tests is a xunit project to unit test your domain logic.
-
BREAKING!! NPM package ‘ua-parser-js’ with more than 7M weekly download is compromised
https://www.nuget.org/packages/Newtonsoft.Json/ https://www.nuget.org/packages/AutoMapper/ https://www.nuget.org/packages/Dapper/ https://www.nuget.org/packages/FluentValidation/ https://www.nuget.org/packages/FluentAssertions/ https://www.nuget.org/packages/NUnit/ https://www.nuget.org/packages/xunit/ https://www.nuget.org/packages/YamlDotNet/ https://www.nuget.org/packages/Moq/ That is simply not true. Mature c# projects purposely maintain no downstream dependencies and is they do, it's to a major reputable lib. See for yourself - these are staple third party packages commonly used. Anything dependency starting with System or NETStandard is Microsoft maintained.
- Os 3 principais frameworks de testes que todo desenvolvedor .NET deveria conhecer
-
Code Smell 91 - Test Asserts without Description
XUnit: Assert Description Deprecation
What are some alternatives?
NUnit - NUnit 3 Framework
Shouldly - Should testing for .NET - the way Asserting *Should* be!
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.
MSTest - MSTest V2 framework and adapter
Moq - Repo for managing Moq 4.x
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
Expecto - A smooth testing lib for F#. APIs made for humans! Strong testing methodologies for everyone!
NSubstitute - A friendly substitute for .NET mocking libraries.
Fixie - Ergonomic Testing for .NET
Stryker.NET - Mutation testing for .NET core and .NET framework!
Bogus - :card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.