Tools/pytest-dev/pytest

Pytest

Scalable Python testing framework

14.4k+18/wkgrowthPythonMIT Licensenew this week

The Lens

By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.

Updated Jun 2026

Pytest is the Python test framework that makes writing tests feel natural. Pytest is the one. It's what the Python community converged on, and for good reason: you write plain functions with assert statements, and pytest figures out the rest.

No boilerplate classes, no self.assertEqual nonsense. Write `def test_something:`, use a normal `assert`, and pytest gives you rich failure output showing exactly what went wrong. The fixture system is powerful: dependency injection for tests that keeps setup clean. The plugin ecosystem (1,000+ plugins) covers everything from parallel execution to coverage to Django integration.

Completely free. MIT license. No paid tier, no hosted version. Just `pip install pytest`. Every Python developer should use this. Solo, team of 5, team of 500, it scales. The fixture system actually gets MORE useful as your test suite grows because you can share setup across modules without inheritance hierarchies.

The catch: fixtures have a learning curve. Scope, autouse, and parameterization can get confusing fast. And if you're coming from unittest, the magic can feel uncomfortable at first.

Free vs Self-Hosted vs Paid

fully free

Free

Everything. Pytest is MIT licensed, maintained by the pytest-dev organization. Funded by donations and sponsors, no commercial entity selling a paid version.

What You Get

  • Test discovery and execution
  • Rich assertion introspection (no assertEqual needed)
  • Fixture system with scoping and parameterization
  • 1,000+ plugins (pytest-cov, pytest-xdist, pytest-django, pytest-asyncio, etc.)
  • Parallel test execution via pytest-xdist
  • Comprehensive test reporting

Cost

$0. pip install pytest and you're done. Plugins are also free.

Completely free. The standard Python testing framework. No paid tier exists.

Self-hosting ops:trivial

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Score
88/100 · A
Adoption27/30
Maintenance25/25
Community11/20
License15/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

High adoption: 13,769 starsActive community: 3,089 forksPermissive license (MIT)

About

Stars
14,395
Forks
3,276

Explore Further

More tools in the directory