Skip to main content

A simple and lightweight TDD unit testing framework.

Project description

quiq

quiq is a simple and lightweight unit testing framework for for exploratory and prototyping coding. quiq allows unit tests to be written right before functions are declared in order to make a much more natural test/develop workflow in the spirit of TDD.

Example:

@TestCase(
    F(6, 5).isin(list(range(2,50))),
    F(6, 5) == 11,
    F(1,2) == 51,
    F(1,2).throws()
)
def add(x, y):
    if x == 1: raise ValueError("No 1s!")
    return x + y
Test Case: add
✅  Original: add(6, 5) isin [2, 3, 4, 5...47, 48, 49]
    Expanded:        11 isin [2, 3, 4, 5...47, 48, 49]

✅  Original: add(6, 5) == 11
    Expanded:        11 == 11

❌  Original: add(1, 2) == 51
    Expanded: ValueError('No 1s!')

✅  Original: add(1, 2) throws Exception
    Expanded: ValueError('No 1s!')

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

quiq-0.0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

quiq-0.0.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file quiq-0.0.1.tar.gz.

File metadata

  • Download URL: quiq-0.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for quiq-0.0.1.tar.gz
Algorithm Hash digest
SHA256 91bfbaca21d2f459ff08badb9a7cf4543a0e045bb7c03bb58e7e3536783a9c8d
MD5 332c97118572d9ff4b726ba8d4d87d41
BLAKE2b-256 5ea1fd406a9d2156519435f121e43cafa62f0fe72bbdab40c551d65ca05fa7d6

See more details on using hashes here.

File details

Details for the file quiq-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: quiq-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for quiq-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1df2050515b098e45436001a4259c81d478974acdaabc03114989586c5e5917
MD5 4f5c4ab780f53d1006ec1172017de449
BLAKE2b-256 494bd79bfef7a74f9e7ae53d68aa8f7d1cd1ec581e3de414c03694e31e5085cb

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