RETIRED, further work has moved to Debian project infrastructure
Go to file
Kelsey Prantis 2c17f9e911 Continue if exclude-dir doesn't exist, just log warning. 2012-05-04 15:17:12 -06:00
test_dirs PEP8 2010-03-08 00:51:12 -05:00
.hgtags Added tag 0.1.8 for changeset 1d0f0220ecf7 2012-04-07 14:54:12 -04:00
AUTHORS explicitly adding copyright and licensing files along with 'authors' 2011-10-16 18:38:09 -04:00
COPYRIGHT explicitly adding copyright and licensing files along with 'authors' 2011-10-16 18:38:09 -04:00
LICENSE explicitly adding copyright and licensing files along with 'authors' 2011-10-16 18:38:09 -04:00
MANIFEST.in added MANIFEST.in to allow README.rst and proper PyPI 2010-04-06 15:31:55 -04:00
README.rst added ability to comment exclude files and added docs on how to add more than one exclude value in a cfg file 2012-04-07 14:48:34 -04:00
nose_exclude.py Continue if exclude-dir doesn't exist, just log warning. 2012-05-04 15:17:12 -06:00
setup.py updated version 2012-04-07 14:54:08 -04:00
tests.py PEP8 2010-03-08 00:51:12 -05:00

README.rst

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/