Machine.Specifications
WireMock.Net
Our great sponsors
- InfluxDB - Access the most powerful time series database as a service
- SonarQube - Static code analysis for 29 languages.
- ONLYOFFICE ONLYOFFICE Docs — document collaboration in your environment
Machine.Specifications | WireMock.Net | |
---|---|---|
1 | 8 | |
864 | 1,103 | |
0.6% | 2.7% | |
3.1 | 6.0 | |
12 days ago | 6 days ago | |
C# | C# | |
MIT License | Apache License 2.0 |
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:
WireMock.Net
-
Usefully links for DotNet Backend Developers
WiremockNet https://github.com/WireMock-Net/WireMock.Net
-
Integration tests without API dependencies with ASP.NET Core and WireMock.Net
In this post, I'll explain how to create mocks for HTTP APIs in narrow integration tests using the WireMock.Net library.
-
How do you Unit Test a WebAPI? What do you test?
I use WireMock (@ Java) to start a local webserver alongside the tests, this webserver will provide ‘real’ responses to the client. Here’s the C# equivalent: https://github.com/WireMock-Net/WireMock.Net
What are some alternatives?
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
xUnit - xUnit.net is a free, open source, community-focused unit testing tool for .NET.
mockhttp - Testing layer for Microsoft's HttpClient library. Create canned responses using a fluent API.
NUnit - NUnit 3 Framework
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.
dotnet-testcontainers - 🐋 A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions. [Moved to: https://github.com/testcontainers/testcontainers-dotnet]
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.
LightBDD - BDD framework allowing to create easy to read and maintain tests.