Fsharp Testing
F# testing patterns covering xUnit, FsUnit, Unquote, and FsCheck property-based tests for .NET projects.
- CCM score
- 67 of 100
- skills.sh installs
- 8.5K
- GitHub stars
- 312.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers unit, async, parameterized, property-based, mocking, and ASP.NET Core integration testing patterns for F# code
- Includes examples for
Theoryparameterization, FsCheck custom generators, and function-stub versus NSubstitute mocking - Enforces fresh state per test, behavior-level assertions, and passing
CancellationTokenthrough async tests - Designed for F# teams on the standard .NET test stack who want a reference for organizing unit, integration, and property tests
Install
$ npx -y skills add affaan-m/ecc --skill fsharp-testing -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
F# Testing Patterns
Comprehensive testing patterns for F# applications using xUnit, FsUnit, Unquote, FsCheck, and modern .NET testing practices.
When to Activate
- Writing new tests for F# code
- Reviewing test quality and coverage
- Setting up test infrastructure for F# projects
- Debugging flaky or slow tests
Test Framework Stack
| Tool | Purpose |
|---|---|
| xUnit | Test framework (standard .NET ecosystem choice) |
| FsUnit.xUnit | F#-friendly assertion syntax for xUnit |
| Unquote | Assertion library using F# quotations for clear failure messages |
| FsCheck.xUnit | Property-based testing integrated with xUnit |
| NSubstitute | Mocking .NET dependencies |
| Testcontainers | Real infrastructure in integration tests |
| WebApplicationFactory | ASP.NET Core integration tests |
Unit Tests with xUnit + FsUnit
Basic Test Structure
module OrderServiceTests
open Xunit
open FsUnit.Xunit
[<Fact>]
let ``create sets status to Pending`` () =
let order = Order.create "cust-1" [ validItem ]
order.Status |> should equal Pending
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- Testing & QA, .NET & C#
- First seen
- Jul 14, 2026
Questions
What does the fsharp-testing skill do?
The fsharp-testing skill gives the agent patterns for testing F# code with xUnit, FsUnit, Unquote, FsCheck property-based testing, integration tests, and test organization. It covers unit tests, async tests, theories, property tests, mocking, and ASP.NET Core integration tests.
How do I install the fsharp-testing skill?
Run this command in a project: npx -y skills add affaan-m/ecc --skill fsharp-testing -y. Once installed, the agent can write and review F# tests using the xUnit and FsCheck patterns in the skill.
Which category does fsharp-testing belong to, and what sets it apart?
It sits in the Testing & QA category and ranks in the top 100 there, alongside skills such as tdd and webapp-testing. Its focus is F# specifically, with FsUnit assertions, Unquote failure messages, and FsCheck property tests for F# functions.
Do I need special tools to use fsharp-testing?
The skill assumes a .NET project run with dotnet test, plus the xUnit, FsUnit, Unquote and FsCheck packages. Integration examples also use NSubstitute, Testcontainers, and WebApplicationFactory for ASP.NET Core.
More from affaan-m/ecc
All 257- React Patterns8.5K
- React Testing8.5K
- React Performance8.5K
- Frontend A11y8.4K
- Recsys Pipeline Architect8.2K
- Marketing Campaign8.1K
- Uncloud8.1K
- Benchmark Optimization Loop7.8K
- Social Publisher7.8K
- Latency Critical Systems7.8K
- Parallel Execution Optimizer7.7K
- Prediction Market Risk Review7.7K
- Data Throughput Accelerator7.7K
- Prediction Market Oracle Research7.7K
- Recursive Decision Ledger7.7K
- Team Agent Orchestration7.3K
- Dynamic Workflow Mode7.1K
- Kubernetes Patterns7K
- Intent Driven Development6.9K
- Inherit Legacy Style6.9K
- Codehealth Mcp6.9K
- Orch Build Mvp6.9K
- Orch Pipeline6.9K
- Orch Add Feature6.8K
Similar to Fsharp Testing
More Testing & QAcsharp-testingaffaan-m/ecc10.7K installsC# and .NET testing patterns using xUnit, FluentAssertions, mocking, and integration test setups.
csharp-xunitgithub/awesome-copilot10.5K installsPractical XUnit guidance covering standard facts, data-driven theories, and assertion and isolation conventions for C# tests.
rust-testingaffaan-m/ecc14.8K installsRust testing patterns covering unit, integration, async, property-based, and mocked tests under a TDD workflow.
unit-testing-frameworkaj-geddes/useful-ai-prompts635 installsStructured guidance for writing unit tests with Jest, pytest, JUnit, or RSpec, following the AAA pattern.
python-testingmindrally/skills1.1K installsPytest-focused testing guidance covering unit, integration, property-based, and mocking practices for Python.