Hacker ApprovedDepartments

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

  1. Vitest

    17 recommend, 8 criticize, 68% approval

    Ranked 3 of 8 by recommenders

    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.

  2. Testcontainers

    14 recommend, 3 criticize, 82% approval

    Ranked 4 of 8 by recommenders

    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.

  3. pytest

    12 recommend, 5 criticize, 71% approval

    Ranked 5 of 8 by recommenders

    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.

Testing frameworks ranked by the number of people who recommend them
Rank
1Mockito191359%34 yrs4 owners—
2cargo-nextest18195%3——
3Vitest17868%8—Approved
4Testcontainers14382%8—Approved
5pytest12571%9—Approved
6Cucumber9853%7——
7Jest71139%5——
8ArchUnit60100%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.