Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

FSharp.Hedgehog

github.com

  • Free plan
  • Windows
  • macOS
  • Linux
7.6 Club score Visit github.com

What FSharp.Hedgehog is

FSharp.Hedgehog is a free property-based testing system for .NET developers using F#, C# or other .NET languages. It generates inputs for properties to explore edge cases and works with any .NET test framework; xUnit V3 is listed as a supported runner. When a property fails, Hedgehog shrinks the generated input to a smaller counterexample while preserving generator invariants. Composable generators describe structured and recursive data, while range combinators control numeric and collection growth. Explicit seed control supports deterministic runs, and shrink trees are available for debugging. The library provides F# computation expressions and LINQ syntax for generators and properties. It supports Linux, macOS and Windows. The repository uses the Apache License 2.0 and offers GitHub Issues and Discussions for support. A documentation example reports a property passing 100 tests. The project lists a free plan and no free trial.

Who it suits

FSharp.Hedgehog suits .NET developers writing property-based tests in F#, C# or other .NET languages. It fits teams wanting shrinking, reproducible failures and framework flexibility.

Good to know, and what to watch

  • Generates inputs to expose edge cases
  • Shrinks failures into smaller counterexamples
  • Preserves generator invariants while shrinking
  • Explicit seeds enable deterministic runs
  • Works with any .NET test framework
  • No free trial
  • Requires .NET development knowledge

The verdict

FSharp.Hedgehog offers generators, shrinking and reproducibility for property-based .NET testing at no cost. Its broad language and test-framework support makes it adaptable across .NET projects.

What the maker publishes

Debugging
The project lists shrink trees as available for debugging. source
Deterministic runs
The repository lists explicit seed control for deterministic test runs. source
Example test count
The documentation example reports a property passing 100 tests. source
Failure shrinking
When a property fails, Hedgehog simplifies the failing input to find a smaller counterexample. source
Generators
Generators can be composed to create structured and recursive data types. source
Generators
It includes generators for primitive values and composable operations for building generators for complex types. source
Installation
The opened project pages do not state a download or platform-specific installation method. source
Integrated shrinking
When a property fails, Hedgehog shrinks the failing input to a smaller counterexample while preserving the generated values’ invariants. source
Intended users
The project describes the library as property-based testing for .NET developers writing tests in F#, C#, or other .NET languages. source
Invariant preserving
Its integrated shrinking keeps shrunk values within the invariants of the generators. source
Languages
The repository says Hedgehog can be used from F#, C#, or other .NET languages. source
License
The repository license is Apache License 2.0. source
Purpose
Hedgehog is a property-based testing system for .NET that automatically generates inputs to help find edge cases. source
Range control
Range combinators control the scope and growth of generated numeric and collection values. source
Reproducibility
Runs can be made deterministic using explicit seed control. source
Security
The opened project pages provide no security or compliance claims. source
Support
The repository exposes GitHub Issues and Discussions for the project. source
Supported languages
The project says it can be used from F#, C#, and other .NET languages. source
Syntax
Hedgehog provides F# computation expressions and supports LINQ syntax for generators and properties. source
Test framework compatibility
Hedgehog works with any .NET test framework. source
Test frameworks
The repository says Hedgehog works with any .NET test framework. source

Checked against the maker's pages on 8 Oct 2026.