This is the command unit2 that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
PROGRAM:
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
-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
Use unit2 online using onworks.net services