AutoFixture/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. observed · 2026-08-28
Health v2 · maintenance only
84/100
- Activity 95
- Release rhythm 60
- Longevity 100
Flags: prerelease_only
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 555
- age_days: 5210
- days_rel: 33
- days_push: 33
- n_releases_24m: 2
Adoption not part of the score
3534 stars · 356 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
AutoFixture is an open-source .NET library that automates the creation of test data and object graphs, minimizing the 'Arrange' phase of unit tests. It implements the Test Data Builder pattern so developers can focus on what is being tested rather than fixture setup.
Use cases
- generate anonymous test data for unit tests in C#
- reduce boilerplate arrange phase in xUnit or NUnit tests
- create object graphs automatically for TDD
- integrate auto-mocking with Moq, NSubstitute, or FakeItEasy
- make unit tests refactoring-safe by avoiding hand-coded fixture values
- generate test fixtures for F# projects with FsCheck or Foq
When to choose
- you write .NET unit tests and want to eliminate repetitive test setup code
- you practice TDD and need fast, maintainable fixture creation
- you want a generic Test Data Builder implementation with mocking library integration
When to avoid
- your tests require precise, deterministic test data rather than anonymous values
- you are not working in the .NET ecosystem
- your project needs integration or end-to-end test tooling rather than unit test fixtures
Facets
library · maturity stable
testing mocking data-generation testing developer-tools dotnet cross-platform test-data-builder unit-testing tdd auto-mocking anonymous-variables csharp fsharp xunit nunit moq nsubstitute fakeiteasy fscheck
1 source
- readme: https://github.com/AutoFixture/AutoFixture · fetched 2026-08-28 · 6ac9707ff3b6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| AutoFixture/AutoFixture | main | 84 |
For agents
markdown · JSON · MCP: product_card(name="AutoFixture/AutoFixture")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem