fsharp-hedgehog
Release with confidence, state-of-the-art property testing for .NET. (by hedgehogqa)
fsharp-hedgehog-xunit
Hedgehog with convenience attributes for xUnit.net (by hedgehogqa)
Our great sponsors
fsharp-hedgehog | fsharp-hedgehog-xunit | |
---|---|---|
5 | 3 | |
270 | 8 | |
0.0% | - | |
6.7 | 7.0 | |
9 months ago | 10 months ago | |
F# | F# | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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
Posts with mentions or reviews of fsharp-hedgehog.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-15.
-
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
fsharp-hedgehog-xunit
Posts with mentions or reviews of fsharp-hedgehog-xunit.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-04-13.
-
Mutation Testing
I totally agree - the ability to write tests with random data is fantastic. Here's an example with Hedgehog.Xunit (shameless plug) that's somewhat similar to your gzip example in that it tests the inverse property of List.rev:
-
LPT: There is a library called Bogus, you should know it exists much earlier than I did in my career.
Disclaimer: I maintain Hedgehog.XUnit.
-
What are you working on? (2021-01)
I just "finished" building Hedgehog.Xunit, which adds some convenience attributes to Hedgehog, a property-based testing library similar to FsCheck. The distinguishing feature is that shrinking comes for free with Hedgehog, whereas you have to customize shrinkers in FsCheck. An blog comparing the two. There's also a cleaner API; no more Arb.
What are some alternatives?
When comparing fsharp-hedgehog and fsharp-hedgehog-xunit you can also consider the following projects:
FsCheck - Random Testing for .NET
AutoBogus - A C# library complementing the Bogus generator by adding auto creation and population capabilities.
CsCheck - Random testing library for C#
hedgehog - Release with confidence, state-of-the-art property testing for Haskell.
Json.NET - Json.NET is a popular high-performance JSON framework for .NET
Transmute - A sound change applier in F#
MiniZinc.Net - MiniZinc <-> .NET
SAFE-SignalR-Feliz
finnhub-dotnet - A .NET client for Finnhub API
proptest - Hypothesis-like property testing for Rust
fsharp-hedgehog vs FsCheck
fsharp-hedgehog-xunit vs FsCheck
fsharp-hedgehog vs AutoBogus
fsharp-hedgehog-xunit vs AutoBogus
fsharp-hedgehog vs CsCheck
fsharp-hedgehog-xunit vs hedgehog
fsharp-hedgehog vs Json.NET
fsharp-hedgehog-xunit vs Transmute
fsharp-hedgehog vs MiniZinc.Net
fsharp-hedgehog-xunit vs SAFE-SignalR-Feliz
fsharp-hedgehog vs finnhub-dotnet
fsharp-hedgehog vs proptest