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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file pesto-testing-0.1.3.tar.gz.

File metadata

  • Download URL: pesto-testing-0.1.3.tar.gz
  • Upload date:
  • Size: 520.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.5 Linux/5.4.0-1040-azure

File hashes

Hashes for pesto-testing-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ad588546b47b1e2ec7725101d4b8321dc98290bbdb971ed4de8aa84984d86f40
MD5 899b662596b7a79cba02b87d28057446
BLAKE2b-256 b2bcfe2e84b4b8892e773e06f004a4a2648961d6a07849d0dd1310fa5c1f1ce7

See more details on using hashes here.

File details

Details for the file pesto_testing-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pesto_testing-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 519.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.5 Linux/5.4.0-1040-azure

File hashes

Hashes for pesto_testing-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a6f477d125588796b9f96a94662723174d7fd58a8a8988b53f96555e8e16ebd3
MD5 90dafca0e9f27db0174b0d1dd7c6faad
BLAKE2b-256 b55fc2f31a6947630e6fcb4665cb6cb07e7792353d4b8d00d12f91c353921793

See more details on using hashes here.

Supported by

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