Wiki

Clone wiki

prego / Home

nose and the prego command

prego testcase can be written in the same files that pyunit standard unit tests. These files can be run with prego or nosetests as well.

However, they are different. prego provides some useful arguments:

:::text
$ prego -h
usage: prego [-h] [-c FILE] [-k] [-d] [-o] [-e] [-v] [-p] ...

positional arguments:
  nose-args

optional arguments:
  -h, --help            show this help message and exit
  -c FILE, --config FILE
                        explicit config file
  -k, --keep-going      continue even with failed assertion or tests
  -d, --dirty           do not remove generated files
  -o, --stdout          print tests stdout
  -e, --stderr          print tests stderr
  -v, --verbose         increase log verbosity
  -p, --plain           avoid colors and styling in output

If you run nosetests you get logging equivalent to prego -eop.

Updated