Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Quickstart

$ pip install nose-blacklist

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

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_thing
# test_other_thing
test_third_thing

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

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

Release History

Release History

This version
History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
nose-blacklist-0.0.1.tar.gz (2.7 kB) Copy SHA256 Checksum SHA256 Source Nov 14, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting