unit2(1)

unit21

A shorthand for python -m unittest2

Usage

unit2 [-h] [-v] [-q] [-f] [-c] [-b] [tests [tests ...]]

Overview

The unit2 script is a convenient shortcut for discovering and running tests in a given body of Python source code.

Options

-h , --help

show this help message and exit

-v , --verbose

Verbose output

-q , --quiet

Quiet output

-f , --failfast

Stop on first fail or error

-c , --catch

Catch ctrl-C and display results so far

-b, --buffer

Buffer stdout and stderr during tests

Examples

unit2 test_module

run tests from test_module

unit2 module.TestClass

run tests from module.TestClass

unit2 module.Class.test_method

run specified test method

Releases

Unchanged in 2 releases since Debian 9 (Stretch).

  1. 9–10

Author

This manual page was written for Debian by Zygmunt Krynicki

From python-unittest2 1.1.0-6.1 in Debian 10 (Buster). Parsed by carta from the page's man source.