Skip to main content

test exclusion for nose with blacklists

Project description

nose-blacklist is a plugin for nose that provides a powerful way of skipping tests without requiring code changes.

  • Test cases are excluded by regex matching
  • Tests cases are matched by their fully-qualified names, including the module, class, and function/method names.
  • Tests to skip can be sourced from one or more files, or from cli arguments


$ pip install nose-blacklist

$ nosetests --with-blacklist \
    --blacklist=<pattern1> \
    --blacklist=<pattern2> \

Blacklist strings can be specified from one or more files. Blacklist files can be used in conjunction with the --blacklist arguments.

$ cat blacklist.txt
# test_other_thing

$ nosetests --with-blacklist \
    --blacklist-file=blacklist.txt \

The blacklist file should have a single pattern per line, as above. Any line starting with a # is commented and will be ignored.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nose-blacklist, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size nose_blacklist-0.0.2-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size nose-blacklist-0.0.2.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page