Skip to main content

Who says writing tests should be boring? Introducing Pest, a lightweight, fun-to-use Python testing framework referenced from the popular JS Jest library.

Project description

Pesto

Coverage Status Build Status Code style: black License: MIT

🚧 Under Development 🚧

A lightweight, fun-to-use Python testing framework made to use like the popular JS Jest library.


Why?

Coming back to software development after being a front-end engineer opened my eyes on how verbose and anti-user-friendly Python testing really is - in my opinion.

I want to enjoy writing tests as much as I loved them with my front-end stack, so I decided to create a little testing framework to mimic that behavior, while still being a robust testing tool.

Get Started

The CLI is very similar to PyTest. Simply give the directory of the tests as the first argument (or ./ is used by default.)

A drag and drop replacement for PyTest

Pesto looks for test files and functions with _test or test_ in the name.

pip install pesto
pesto <test-dir>

Development

I'm still a novice when it comes to testing, so the capabilities of this library will grow as I grow as a developer

Todo

General

  • Add multiprocessing support to run tests in parallel
  • Create github action
  • Add Poetry

unittest / pytest like functionality:

  • Mocking (integrate unittest.mock)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pesto-testing-0.1.3.tar.gz (520.3 kB view hashes)

Uploaded Source

Built Distribution

pesto_testing-0.1.3-py3-none-any.whl (519.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page