Skip to main content

Module for unit testing

Project description

utesting-py

GitHub: https://github.com/s0urcedev/utesting-py

PyPi: https://pypi.org/project/utesting/

Python module for unit testing

Installation:

pip install utesting

Importing:

from utesting import ResultState # not necessary
from utesting import ResultStates # not necessary
from utesting import Unit # not necessary
from utesting import TestCase # necessary (for creating test cases)
from utesting import TestGroup # not necessary
from utesting import TestCaseResult # not necessary
from utesting import Test # necessary (for additing and running testing)

Using:

test(group, output) — test test group

test_async(group, output) — async version of test

@mark_test_unit(cases, asynchronous, only_errors, only_time, no_print) — decorator for marking test unit

add_test_unit(callback, cases, asynchronous, only_errors, only_time, no_print) — same as mark_test_unit, but can't be used as decorator

test_all(file_name) — running testing all marked(added) units

test_all_asyc(file_name) — async version of test_all

And other documentation in utesting/__init__.py and examples in examples.py

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

utesting-2.3.0.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

utesting-2.3.0-py3-none-any.whl (5.2 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