Skip to content

Commit

Permalink
doc: add a note about nose skipping files marked executable
Browse files Browse the repository at this point in the history
  • Loading branch information
jszakmeister committed Nov 28, 2015
1 parent 729c99a commit 77cd145
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions doc/finding_tests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.
Be aware that plugins and command line options can change any of those rules.

0 comments on commit 77cd145

Please # to comment.