Python Testing

Open-source Python projects categorized as Testing

Top 23 Python Testing Projects

  • GitHub repo locust

    Scalable user load testing tool written in Python

    Project mention: Best way to benchmark and load test an api. | | 2021-02-17

    Been using in the past.

  • GitHub repo faker

    Faker is a Python package that generates fake data for you. (by joke2k)

    Project mention: DuckDB: an embedded DB for data wrangling | | 2020-11-01

    To test a database, first you need some data. So I created a python script and used Faker to create the following CSV files:

  • Scout

    Get performance insights in less than 4 minutes. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.

  • GitHub repo pytest

    The pytest framework makes it easy to write small tests, yet scales to support complex functional testing

    Project mention: Hacktoberfest: 69 Beginner-Friendly Projects You Can Contribute To | | 2020-09-29 A framework makes it easy to write small tests, yet scales to support complex functional testing

  • GitHub repo Robot Framework

    Generic automation framework for acceptance testing and RPA

    Project mention: How learn Robot framework? | | 2021-02-16

  • GitHub repo hypothesis

    Hypothesis is a powerful, flexible, and easy to use library for property-based testing.

    Project mention: Fastcheck: Property based testing for JavaScript and TypeScript | | 2021-02-15

    For those looking for property based testing for Python:

  • GitHub repo PyAutoGUI

    A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.

    Project mention: is there a way to create an auto hotkey script alternative? | | 2021-02-19

    Or if you want to do Python, you'll want to create a virtual environment. Activate the virtual environment, install pyautogui (pip install pyautogui), and create a script. For the i3 config file, it would look like this: bindsym $mod+shift+d exec /path/to/env/bin/python3 /path/to/

  • GitHub repo Moto

    A library that allows you to easily mock out tests based on AWS infrastructure.

    Project mention: AWS, Boto3, Python, and Microsoft Visual Studio Code | | 2021-02-14

    Check out moto. It's great for writing unit tests for boto3 stuff. There isn't coverage for all services or API calls but the core services are pretty solid.

  • GitHub repo

    The Python error steamroller.

    Project mention: Skip any throwable code | | 2020-10-16 intro: uses state-of-the-art technology to make sure your Python code runs whether it has any right to or not. Some code has an error? Fuck it.

  • GitHub repo Mimesis

    Mimesis is a high-performance fake data generator for Python, which provides data for a variety of purposes in a variety of languages.

  • GitHub repo responses

    A utility for mocking out the Python Requests library.

  • GitHub repo molecule

    Molecule aids in the development and testing of Ansible roles

    Project mention: CI/CD case study for edge infrastructure with a lot of Raspberry Pis | | 2021-01-21

    Ansible Molecule

  • GitHub repo freezegun

    Let your Python tests travel through time

  • GitHub repo factory_boy

    A test fixtures replacement for Python

  • GitHub repo splinter

    splinter - python test framework for web applications

  • GitHub repo Behave

    BDD, Python style.

    Project mention: UPDATE: Subreddit scraper for investing | | 2020-12-20

    I like bdd and unit tests.

  • GitHub repo fake2db

    create custom test databases that are populated with fake data

  • GitHub repo SeleniumBase

    ✅ 📊 A complete framework for Web-UI testing. 💠 Fast, easy, and reliable. (Python)

    Project mention: The 15 syntax formats of SeleniumBase | | 2020-12-28

    This format is used by most of the examples in the SeleniumBase examples folder. It's a great starting point for anyone learning SeleniumBase, and it follows good object-oriented programming principles. In this format, BaseCase is imported at the top of a Python file, followed by a Python class inheriting BaseCase. Then, any test method defined in that class automatically gains access to SeleniumBase methods, including the setUp() and tearDown() methods that are automatically called to spin up and spin down web browsers at the beginning and end of test methods. Here's an example of that:

  • GitHub repo

    Automatically mock your HTTP interactions to simplify and speed up testing

    Project mention: Magic numbers for Verify? | | 2021-01-11

    I don't normally work in Python, so I'm not used to writing mocks. You should be able to mock the client, but if that is too much you might look into something like which records underlying HTTP interactions and then plays them back in further tests. (Make sure to redact any API keys from the cassettes though.)

  • GitHub repo sixpack

    Sixpack is a language-agnostic a/b-testing framework

  • GitHub repo nose

    nose is nicer testing for python

  • GitHub repo PyBuilder

    Software build automation tool for Python.

  • GitHub repo PyRestTest

    Python Rest Testing

  • GitHub repo Schemathesis

    A modern API testing tool for web applications built with Open API and GraphQL specifications.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-02-19.


What are some of the best open-source Testing projects in Python? This list will help you:

Project Stars
1 locust 15,362
2 faker 12,137
3 pytest 7,031
4 Robot Framework 5,578
5 hypothesis 4,964
6 PyAutoGUI 4,820
7 Moto 4,376
8 3,963
9 Mimesis 3,233
10 responses 3,106
11 molecule 3,040
12 freezegun 2,789
13 factory_boy 2,419
14 splinter 2,351
15 Behave 2,262
16 fake2db 2,055
17 SeleniumBase 2,023
18 1,856
19 sixpack 1,671
20 nose 1,326
21 PyBuilder 1,284
22 PyRestTest 1,055
23 Schemathesis 744