The best testing frameworks, according to hackers
8 testing frameworks were recommended on Hacker News between November 2025 and November 2026. We rank them by how many separate people recommend each one, and 3 earn the Hacker Approved badge.
Top picks
The three most recommended testing frameworks with the badge. Each figure is 2 people. RecommendsCriticizes One comment
Part of the Vite toolchain
Fast, Jest-compatible test runner built on Vite that people adopt for new projects; the common caveat is trouble with mocks and debugging.
Runs tests against real databases
Starts real databases and services in Docker containers for tests, so people skip mocks and in-memory stand-ins. Main caveat: some worry about images pulled from Docker Hub.
Runs cleanly in CI and hooks
Widely used Python test runner praised for fixtures, parametrized tests and easy CI setup. Critics say fixture magic is hard to follow.
All 8 testing frameworks, ranked
Select a column heading to sort. Approval share is recommenders out of everyone who gave an opinion; the tick on each bar marks the 2 to 1 line the badge needs. Months counts the months, out of 13, in which someone recommended it.
| Rank | |||||||
|---|---|---|---|---|---|---|---|
| 1 | Mockito | 19 | 13 | 59% | 3 | 4 yrs4 owners | — |
| 2 | cargo-nextest | 18 | 1 | 95% | 3 | — | — |
| 3 | Vitest | 17 | 8 | 68% | 8 | — | Approved |
| 4 | Testcontainers | 14 | 3 | 82% | 8 | — | Approved |
| 5 | pytest | 12 | 5 | 71% | 9 | — | Approved |
| 6 | Cucumber | 9 | 8 | 53% | 7 | — | — |
| 7 | Jest | 7 | 11 | 39% | 5 | — | — |
| 8 | ArchUnit | 6 | 0 | 100% | 4 | — | — |
How we rank
Rank is the number of separate people who recommend a product in a Hacker News comment over the past year. Someone who praises the same testing framework in five threads counts once.
The badge goes to testing frameworks that at least 10 people recommend, with recommenders outnumbering critics at least 2 to 1, recommended in at least 4 of the 13 months.
Rankings are never for sale. We may earn a commission when you buy through our links. It never changes the order.