FsCheck VS Expecto

Compare FsCheck vs Expecto and see what are their differences.

Expecto

A smooth testing lib for F#. APIs made for humans! Strong testing methodologies for everyone! (by haf)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
FsCheck Expecto
11 2
1,132 652
0.9% -
8.1 6.6
7 days ago 3 days ago
F# F#
BSD 3-clause "New" or "Revised" License Apache License 2.0
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.

FsCheck

Posts with mentions or reviews of FsCheck. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-19.

Expecto

Posts with mentions or reviews of Expecto. 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
    3 projects | /r/fsharp | 15 Oct 2022
    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#
    3 projects | /r/fsharp | 6 Feb 2022
    Beside, did you try Expecto? https://github.com/haf/expecto

What are some alternatives?

When comparing FsCheck and Expecto you can also consider the following projects:

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.

xUnit - xUnit.net is a free, open source, community-focused unit testing tool for .NET.

Bogus - :card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.

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/)

sharpfuzz - AFL-based fuzz testing for .NET

NUnit - NUnit Framework

Fluent Assertions - A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.7, as well as .NET Core 2.1, .NET Core 3.0, .NET 6, .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.

Fine Code Coverage - Visualize unit test code coverage easily for free in Visual Studio Community Edition (and other editions too)

hedgehog - Release with confidence, state-of-the-art property testing for Haskell.

Canopy - f# web automation and testing library, built on top of Selenium (friendly to c# also)

Moq - Repo for managing Moq 4.x [Moved to: https://github.com/moq/moq]

Fuchu - Functional test library for F# / C# / VB.NET