Changeset 85
- Timestamp:
- Tue Aug 8 09:16:08 2006
- Files:
-
- trunk/nose/loader.py (modified) (diff)
- trunk/AUTHORS (modified) (diff)
- trunk/CHANGELOG (modified) (diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
trunk/nose/loader.py
r80 r85 54 54 # to ensure that lib paths are set up correctly before tests are 55 55 # run, examine directories that look like lib or module 56 # directories first and tests last 56 # directories first and tests last 56 56 def test_last(a, b, m=self.conf.testMatch): 57 57 if m.search(a) and not m.search(b): … … 63 63 64 64 entries = os.listdir(dirname) 65 entries.sort(test_last) 65 entries.sort(test_last) 65 65 for item in entries: 66 66 tests = None … … 88 88 module.__name__, plug.name) 89 89 for test in plug.loadTestsFromModule(module): 90 tests.append(test) 90 tests.append(test) 90 90 # recurse into all modules 91 91 if hasattr(module, '__path__') and module.__path__: -
trunk/AUTHORS
r24 r85 3 3 Mika Eloranta 4 4 Jay Parlar 5 Scot Doyle5 Scot Doyle 6 James Casbon -
trunk/CHANGELOG
r70 r85 1 0.9.1 2 3 - New function nose.runmodule() finds and runs tests only in a 4 single module, which defaults to __main__ (like unittest.main() or 5 doctest.runmodule()). Thanks Greg Wilson for the suggestion. 6 - Multiple -w (--where) arguments can now be used in one command line, 7 to find and run tests in multiple locations. Thanks Titus Brown for 8 the suggestion. 9 - Coverage will now include modules not imported by any test when 10 using the new --cover-inclusive switch. Thanks James Casbon for the 11 patch. 12 - module:TestClass test selections now properly select all tests in the test 13 class. 14 - startTest and stopTest are now called in plugins at the beginning and end of 15 test suites, including test modules, as well as individual tests. Thanks 16 Michal Kwiatkowski for the suggestion. 17 - Fix bug in test selection when run as ``python setup.py test``: 'test' was 18 passing through and being used as the test name selection. Thanks Kumar 19 McMillan for the bug report. 20 1 21 0.9.0 2 22
