go-testfixtures/testfixtures
Ruby on Rails like test fixtures for Go. Write tests against a real database observed · 2026-08-28
Health v2 · maintenance only
78/100
- Activity 98
- Release rhythm 41
- Longevity 100
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: 53.5
- age_days: 3802
- days_rel: 313
- days_push: 14
- n_releases_24m: 7
Adoption not part of the score
1235 stars · 92 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Go library that mimics Ruby on Rails-style test fixtures, loading YAML fixture files into a real SQL database before each test. It wipes and repopulates the test database so functional tests run against actual data instead of mocks.
Use cases
- load yaml fixtures into a test database in go
- run go tests against a real database instead of mocks
- reset database state before each go test
- seed test data for functional tests in go
- rails-like fixtures for golang
- test go web apps with a real sql database
When to choose
- you write Go integration or functional tests that hit a real SQL database
- you want Rails-style YAML fixtures with automatic per-test database reset
- you find database mocks tedious and error-prone
When to avoid
- you only need unit tests with mocked data layers
- you cannot risk wiping a database (it deletes all data before loading)
- you use a non-SQL datastore
Facets
library · maturity active
testing database mocking testing databases developer-tools go cli test-fixtures yaml-fixtures integration-testing rails-style sql
4 sources
- readme: https://github.com/go-testfixtures/testfixtures · fetched 2026-08-28 · ffe7afe84611
- homepage: https://pkg.go.dev/github.com/go-testfixtures/testfixtures/v3?tab=doc · fetched 2026-08-29 · 51b58118ca8d
- site_page: https://pkg.go.dev/about · fetched 2026-08-29 · 757852027879
- site_page: https://go.dev/project · fetched 2026-08-29 · d5ca00bb378b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| go-testfixtures/testfixtures | main | 78 |
For agents
markdown · JSON · MCP: product_card(name="go-testfixtures/testfixtures")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem