GitPedia

FsUnit

FsUnit makes unit-testing with F# more enjoyable. It adds a special syntax to your favorite .NET testing framework.

From fsprojects·Updated May 26, 2026·View on GitHub·

**FsUnit** is a set of libraries that makes unit-testing with F# more enjoyable. It adds a special syntax to your favorite .NET testing framework. FsUnit currently supports NUnit, xUnit, and MsTest. The project is written primarily in F#, distributed under the MIT License license, first published in 2011. Key topics include: dotnet, fsharp, fsunit, mstest, nunit.

Latest release: 7.1.1v7.1.1
June 26, 2025View Changelog →

FsUnit

<img align="right" width="100" style="margin-left:20px" src="https://raw.githubusercontent.com/fsprojects/fsunit/master/docs/img/logo.png">

Build Status
NuGet Status

FsUnit is a set of libraries that makes unit-testing with F# more enjoyable. It adds a special syntax to your favorite .NET testing framework.
FsUnit currently supports NUnit, xUnit, and MsTest.

The goals of FsUnit are:

  • to make unit-testing feel more at home in F#, i.e., more functional.
  • to leverage existing test frameworks while at the same time adapting them to the F# language in new ways.

Getting Involved

GitHub makes collaboration very easy. To get involved with FsUnit, simply follow the directions provided by GitHub to
fork this repository, then implement lots of cool stuff, and finally send a pull request.

A few things to keep in mind:

  • Going forward, FsUnit will aim to support as much functionality as possible across all supported testing frameworks.

  • Development environments need to be setup to run tests for xUnit and NUnit. A product like ReSharper can make this easier.

  • Since the unit tests for FsUnit are written with FsUnit, failing tests are just as important as passing tests.

Build Instructions

  • Find and run either ./build.sh or build.cmd (depending on your platform).

Maintainer(s)

The default maintainer account for projects under "fsprojects" is @fsprojectsgit - F# Community Project Incubation Space (repo management)

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from fsprojects/FsUnit via the GitHub API.Last fetched: 6/27/2026