From 77cd145afe2606ba9c0515be0e8c49f8319e19ef Mon Sep 17 00:00:00 2001 From: John Szakmeister Date: Sat, 28 Nov 2015 07:40:57 -0500 Subject: doc: add a note about nose skipping files marked executable --- doc/finding_tests.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/finding_tests.rst b/doc/finding_tests.rst index 5f9cb74..a58e4a4 100644 --- a/doc/finding_tests.rst +++ b/doc/finding_tests.rst @@ -8,7 +8,12 @@ nose, by default, follows a few simple rules for test discovery. expression, and those that match are considered tests. Any class that is a `unittest.TestCase` subclass is also collected, so long as it is inside of a module that looks like a test. - + +* Files with the executable bit set are ignored by default under Unix-style + operating systems--sse ``--exe`` to allow collection from them, but be careful + that is safe to do so. Under Windows, executable files will be picked up by + default since there is no executable bit to test. + * Directories that don't look like tests and aren't packages are not inspected. @@ -29,4 +34,4 @@ nose, by default, follows a few simple rules for test discovery. True, that object will not be collected, nor will any objects it contains. -Be aware that plugins and command line options can change any of those rules. \ No newline at end of file +Be aware that plugins and command line options can change any of those rules. -- cgit v1.2.1