Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

TurboTest🔥 (still under dev)

Run tests

let's make tests readable and simple

Give it a try

import TurboTest as tt
from my_module.my_function import my_function

def basic_operations():
    result = my_function(2, 3)
    expected = 5
    tt.both_are_equal(result, expected)

def should_raise_AssertionError_for_input_less_than_25():
    with tt.these_will_raise(AssertionError) as its: my_function(21)
    tt.both_are_equal(its.exception_msg, "Invalid: Value is less than 25.")

What you will get:

TurboTest-1.0.0 🐍3.10.3  at '/path/to/my_module'  « Monday, Jan 1, 2024, 13:11:21 UTC-0800 »
──────────────────────────────────────────────────────────────────────────────────────────────────────
[22:00:00] PASS: my_function: basic operation  (3🧪|1m2.3s)
[22:00:02] PASS: my_function: should raise AssertionError for input less than 25  (9🧪|2m2.1s)
[22:02:00] FAIL: abc123/foo/bar: should do X  (2🧪|0m5.1s)
[22:03:00] FAIL: abc123/foo/bar: reject empty string  (17🧪|0m0.1s)
[22:05:12] PASS: xyz/abc: exit if X equal to None  (9🧪|0m0.7s)
[22:07:45] FAIL: xyz/pqr: return None if Y does not exist  (6🧪|2m3.1s)
──────────────────────────────────────────────────────────────────────────────────────────────────────
Done @ 22:09:55, 100 test functions [pass/fail: 61/39] executed in [core/total: 31m2.0s/37m3.1s] 🔥🔥

with color:

[]

Install

  • via PyPI, run this:

    pip install turbotest
    

Misc

Troubleshoot

  • Please note that TurboTest minimizes validations for readability and easier maintenance purposes. The input should align with the function's expectations. For example, if the function specifies x: Exception, please provide only exception-related input, as there are no checks to catch incorrect inputs.

License

This project's source code and documentation are under the MIT license.

Release files for TurboTest 0.15.0b0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TurboTest 0.15.0b0
File Size Uploaded
TurboTest-0.15.0b0.tar.gz 11.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TurboTest 0.15.0b0
File Interpreter ABI Platform
TurboTest-0.15.0b0-py3-none-any.whl Python 3 none any Details

Total release size: 32.3 kB

Release files / TurboTest-0.15.0b0.tar.gz

Download URL TurboTest-0.15.0b0.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b56529f79cee54900b3d23c23577e57bc12beea22a9cfc876f20b02ac057b6d2
BLAKE2b-256 checksum
How to use checksums
658f12a221b0c1bcd3d50f5e3cf25542bf6cdd326ccf7b022d38a4ffcfbb9e67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.17

Release files / TurboTest-0.15.0b0-py3-none-any.whl

Download URL TurboTest-0.15.0b0-py3-none-any.whl
Size 20.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20544656aea22ecb97fdb541b91d7fcef30b5c291aa12d5c5be766ff094bad06
BLAKE2b-256 checksum
How to use checksums
35d433f28df33c0576d6552e0487c444a0452be9f6b7ac7328ef9be1b9a91e70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.17
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page