Skip to main content

A package for tests with meaningful output and display (IDLE-Compatible)

Project description

testrun

A Python library for tests with meaningful output and display (IDLE-compatible)


Version: 1.0.0
Author: ES Alexander
Release Date: 07/Nov/2019


This testing module is intended for small-scale testing of python, including in IDLE. Notable features include:

TestRun: A base class for a test-suite, including automatic test-detection (for methods beginning with test_), running all available tests or a specified set with run_tests, running the tests which failed in the last run with run_failed_tests, and automatic (not in IDLE) and user-generated timeouts while testing.

TestGroup: A class for grouping multiple TestRun instances as though they are a single instance.

Redirect: A class for stream redirection and multiplication, focused on stdin, stdout, and stderr, but also usable for general file streams. Allows for capturing printed output and simulating typed input while testing.

MultiRedirect: A class for managing multiple redirections, allowing for methods to be run simultaneously on all stored redirections.

Usage

Install via pip, using python3 -m pip install --upgrade testrun.

To import the entire module, use import testrun.TestRun as TestRun.

Otherwise, to import one or more classes, use from testrun.TestRun import TestRun, Redirect.

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

testrun-1.0.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

testrun-1.0.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file testrun-1.0.0.tar.gz.

File metadata

  • Download URL: testrun-1.0.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.2

File hashes

Hashes for testrun-1.0.0.tar.gz
Algorithm Hash digest
SHA256 069aa734972c8497064bc1845e0fb47b1e563213bbb833d35a10a3046e973c1b
MD5 e9b28a7c1f9781e0985be814c045a1de
BLAKE2b-256 16aab3be8fe827f04ceebde06f93ecf27aa76ffed48d4c75f0894e66e4f824d6

See more details on using hashes here.

File details

Details for the file testrun-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: testrun-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.2

File hashes

Hashes for testrun-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 329db52c8699297780cdd5f8fcada142d31e12b67be0eb58137b97376cdc2a21
MD5 001d6da4dbc03b510232394881864e35
BLAKE2b-256 f59ce7e06584be46868bc6c4210e20f4a30fe94c5ce9384dd207d24d1e4ff0a9

See more details on using hashes here.

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