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
# Start a line with a '#' to include
# Comments
test_dirs/test_not_me

Nose Configuration Files

nose-exclude options can also be passed to nosetests using a .noserc or nose.cfg file. If you more than one directory are to be excluded separate their values with newlines using the same configuration key:

[nosetests]
exclude-dir=test_dirs/exclude_dirs
            test_dirs/more_excludes

Bugs

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

Metadata

Release files for nose-exclude 0.1.8

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.8
File Size Uploaded
nose-exclude-0.1.8.tar.gz 3.2 kB Details

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

Download URL nose-exclude-0.1.8.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
70748482b40b07faa0e749d16a60a804d8e1d6a698354c7bafc0d5d8e2b913aa
BLAKE2b-256 checksum
How to use checksums
8172998d4fb075fb01e94059c044bef2d68285357edf866ba37752610744504a
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

This release

0.1.8 This release

1 release file

0.1.7

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