Skip to main content

test exclusion for nose with blacklists

Project description

https://travis-ci.org/pglass/nose-blacklist.svg?branch=master

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.

Project details


Download files

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

Source Distribution

nose-blacklist-0.0.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

nose_blacklist-0.0.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file nose-blacklist-0.0.2.tar.gz.

File metadata

  • Download URL: nose-blacklist-0.0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for nose-blacklist-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3a1b9e7cfb3f4082928d4100fd0eecd7f36d1efbb5c323c15d0352edc6321f21
MD5 3cfbf1d188998759cc6f63b77af2f43b
BLAKE2b-256 13de96f9947294126844f8170cbf7654697adfa83636325c1cd4d3f6576a7d81

See more details on using hashes here.

File details

Details for the file nose_blacklist-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: nose_blacklist-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for nose_blacklist-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 975ff228457b5e90a9d9748e2d8399c17ac4cba6dcc04b942211ea608a7809dd
MD5 c2c29ee9b759c2282c2132c2be96cbf8
BLAKE2b-256 490ef63e49760bf77db88c00d8fd4289ffbd5776b3f2053de004b7088f289b2f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page