Scroll to navigation

UNIT2(1) General Commands Manual UNIT2(1)

NAME

unit2 - a shorthand for python -m unittest2

SYNOPSIS

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

DESCRIPTION

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

COMMAND LINE OPTIONS

show this help message and exit
Verbose output
Quiet output
Stop on first fail or error
Catch ctrl-C and display results so far
Buffer stdout and stderr during tests

EXAMPLES

run tests from test_module
run tests from module.TestClass
run specified test method

AUTHOR

This manual page was written for Debian by Zygmunt Krynicki

March 2015