fsharp-hedgehog
CsCheck
Our great sponsors
fsharp-hedgehog | CsCheck | |
---|---|---|
5 | 3 | |
270 | 119 | |
0.0% | - | |
6.7 | 9.2 | |
9 months ago | about 2 months ago | |
F# | C# | |
GNU General Public License v3.0 or later | 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.
fsharp-hedgehog
-
Resources to learn the F# ecosystem
Unit testing: I personally use FsUnit, specifically FsUnit.Xunit. There's some other libraries like Expecto and Hedgehog (property testing), but I haven't found a reason to use them. I recently started experimenting a little with Hedgehog. FsUnit integrates well into Visual Studio, since it sits nicely on top of NUnit and xUnit, and it's done everything I've needed so far.
-
What are you working on? (2021-06)
Looks cool. Is there a reason why you didn't use FsCheck or Hedgehog? They're built to generate random data for testing, and can return the seed if a test fails so you can rerun the test with the exact same data once you figure out what the problem is - which is useful if the failure condition is rare.
-
Mutation Testing
Haskell has QuickCheck and Hedgehog, and dotnet has both as well. F# is favored, but there's C# interop.
-
LPT: There is a library called Bogus, you should know it exists much earlier than I did in my career.
Dotnet has FsCheck and Hedgehog. Both are primarily aimed at F#, but C# is supported as well.
-
In praise of property-based testing
Hedgehog
CsCheck
-
CsCheck 2.0.0 released!
https://github.com/AnthonyLloyd/CsCheck https://www.nuget.org/packages/CsCheck
- Show HN: CsCheck 2.0.0 – suite of random testing tools
-
In praise of property-based testing
CsCheck
What are some alternatives?
FsCheck - Random Testing for .NET
AutoBogus - A C# library complementing the Bogus generator by adding auto creation and population capabilities.
Fine Code Coverage - Visualize unit test code coverage easily for free in Visual Studio Community Edition (and other editions too)
Json.NET - Json.NET is a popular high-performance JSON framework for .NET
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.
MiniZinc.Net - MiniZinc <-> .NET
GennyMcGenFace
finnhub-dotnet - A .NET client for Finnhub API
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.
proptest - Hypothesis-like property testing for Rust
WireMock.Net - WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on the functionality from http://WireMock.org, but extended with more functionality.