pytest

Python testing framework that makes it easy to write small, readable tests

Visit docs.pytest.org FreeOpen source

pytest is the most widely used Python testing framework. It discovers tests automatically, uses plain assert statements with detailed failure output, and provides fixtures and a rich plugin ecosystem.

Key features

  • Plain assert with detailed introspection
  • Powerful fixtures
  • Parametrized tests
  • 1,000+ plugins

Try it on DevTools Daily

Similar tools

  • Jest

    Delightful JavaScript testing framework with a focus on simplicity

    FreeOpen sourceCLI, VS Code
  • Playwright

    Reliable end-to-end testing and browser automation for modern web apps

    by MicrosoftFreeOpen sourceCLI, macOS, Windows +2
  • Vitest

    Next-generation testing framework powered by Vite

    FreeOpen sourceCLI, VS Code
  • Cypress

    JavaScript end-to-end and component testing that runs in the browser

    by Cypress.ioFreemiumOpen sourceCLI, macOS, Windows +1
  • Faker

    Generate massive amounts of realistic fake data for testing and development

    FreeOpen sourceCLI, Web
  • Grafana k6

    Developer-centric load testing with tests written in JavaScript

    by Grafana LabsFreemiumOpen sourceCLI, macOS, Windows +1

Built a tool like pytest? Submit it for review