Skip to main content

Run python unit-tests as command-line applications (class and method based).

Project description

Run python unit-tests as command-line applications (class and method based)

install

pip install unittester

options:

Usage: sample.py [options]

Options:
  -h, --help            show this help message and exit
  -c CLASSNAME, --class=CLASSNAME
                        UnitTest classname
  -m METHOD, --method=METHOD
                        UnitTest methodname (optional)
  -f, --failfast        Fail fast
  -a, --all             Run all test without stop on fail
  -s, --showclasses     Show all classes
  -r, --resetconsole    Reset console (clear screen)
  -p, --profile         Profile the method
  -q, --quiet           Silence output except when there is an error

quiet

Quiet mode only outputs text in case of an error.

normal

$ python tests.py -c SampleTestCase2
0.00 | unittester.py:70 | unittester | SampleTestCase2
.
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK

quiet

$ python sample.py -q -c SampleTestCase2
$

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

unittester-26.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file unittester-26.tar.gz.

File metadata

  • Download URL: unittester-26.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for unittester-26.tar.gz
Algorithm Hash digest
SHA256 f0118f097892a41fddfe5c075d60a0f31e5a7f9f043903faffcf9cc83ca4f1ce
MD5 ead9ffeec4551cf2658f70e3f3400b75
BLAKE2b-256 e63b4d68e759addacdf41f5ff35c3d46c420e64b5bdd4ad69163f2a3b9e16b45

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