fsharp-hedgehog
Cardizer
Our great sponsors
fsharp-hedgehog | Cardizer | |
---|---|---|
5 | 2 | |
270 | 25 | |
0.0% | - | |
6.7 | 0.0 | |
9 months ago | about 1 year ago | |
F# | F# | |
GNU General Public License v3.0 or later | MIT License |
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
Cardizer
- Looking to contribute to a F# project? Come contribute to our beginner friendly credit card generator!
-
What are you working on? (2021-06)
With others developers, we convinced our employer to start pushing officially code originally made internally. Most of the code will be shared under the MIT license. From this initiative I just released openly my first library: Cardizer. It is a dotnet lib written in F# (ofc). We use it to generate randomize but valid credit card number for testing purpose. Its implementation is quite naive so feel free to comment what I can improve! I plan to try an type driven approach later on.
What are some alternatives?
FsCheck - Random Testing for .NET
Cardidy - A .net library to identify credit card number and cvv
AutoBogus - A C# library complementing the Bogus generator by adding auto creation and population capabilities.
gofakeit - Random fake data generator written in go
CsCheck - Random testing library for C#
Json.NET - Json.NET is a popular high-performance JSON framework for .NET
MiniZinc.Net - MiniZinc <-> .NET
finnhub-dotnet - A .NET client for Finnhub API
proptest - Hypothesis-like property testing for Rust
Expecto - A smooth testing lib for F#. APIs made for humans! Strong testing methodologies for everyone!
StereoDB - Ultrafast and lightweight in-process memory database written in F# that supports: transactions, secondary indexes, persistence, and data size larger than RAM.
hedgehog - Release with confidence, state-of-the-art property testing for Haskell.