Expecto
fsharp-hedgehog
Our great sponsors
Expecto | fsharp-hedgehog | |
---|---|---|
2 | 5 | |
654 | 270 | |
- | 0.0% | |
6.6 | 6.7 | |
11 days ago | 9 months ago | |
F# | F# | |
Apache License 2.0 | 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.
Expecto
-
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.
-
Das.Test - an opinionated unit testing library written in F# for F#
Beside, did you try Expecto? https://github.com/haf/expecto
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
What are some alternatives?
xUnit - xUnit.net is a free, open source, community-focused unit testing tool for .NET.
FsCheck - Random Testing for .NET
AutoBogus - A C# library complementing the Bogus generator by adding auto creation and population capabilities.
NFluent - Smooth your .NET TDD experience with NFluent! NFluent is an ergonomic assertion library which aims to fluent your .NET TDD experience (based on simple Check.That() assertion statements). NFluent aims your tests to be fluent to write (with a super-duper-happy 'dot' auto-completion experience), fluent to read (i.e. as close as possible to plain English expression), but also fluent to troubleshoot, in a less-error-prone way comparing to the classical .NET test frameworks. NFluent is also directly inspired by the awesome Java FEST Fluent assertion/reflection library (http://fest.easytesting.org/)
CsCheck - Random testing library for C#
NUnit - NUnit Framework
Json.NET - Json.NET is a popular high-performance JSON framework for .NET
Fine Code Coverage - Visualize unit test code coverage easily for free in Visual Studio Community Edition (and other editions too)
MiniZinc.Net - MiniZinc <-> .NET
Canopy - f# web automation and testing library, built on top of Selenium (friendly to c# also)
finnhub-dotnet - A .NET client for Finnhub API