Skip to main content

Overview

nose-exclude is a Nose plugin that allows you to easily specify directories to be excluded from testing.

Exclude Directories

The --exclude-dir= option is made available after installation of the plugin. The option may be used multiple times to exclude multiple directories from testing. The directory paths provided may be absolute or relative.

Example:

$ nosetests --exclude-dir=test_dirs/build \
    --exclude-dir=test_dirs/test_not_me test_dirs
....
----------------------------------------------------------------------
Ran 4 tests in 0.006s

OK

This example will exclude the directories test_dirs/build and test_dirs/test_not_me from nosetests’ test searching.

Using File-Based Exclusion List

The --exclude-dir-file= option can be used to pass in a predefined list of directories contained within a file. nose-exclude expects each directory to be excluded to be on its own line.

Example:

$ nosetests --exclude-dir-file=test_dirs/exclude_dirs.txt \
    test_dirs
....
----------------------------------------------------------------------
Ran 4 tests in 0.006s

OK

where exclude_dirs.txt might look like:

test_dirs/build
test_dirs/test_not_me

Bugs

Please report all bugs (and patches) to http://bitbucket.org/kgrandis/nose-exclude/

Metadata

Release files for nose-exclude 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nose-exclude 0.1.7
File Size Uploaded
nose-exclude-0.1.7.tar.gz 3.0 kB Details

Release files / nose-exclude-0.1.7.tar.gz

Download URL nose-exclude-0.1.7.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
059dc0b30c222498692e3259f2853c3a396ae1124519b644238599b74a03656a
BLAKE2b-256 checksum
How to use checksums
088300bf6850252d3d1eb96d96cff1af2d7ba0775becb2a3acf6e42b67b22c45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.5.0

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

This release

0.1.7 This release

1 release file

0.1.6

1 release file

0.1.5

2 release files

0.1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page