Changeset 116

Show
Ignore:
Timestamp:
Tue Nov 14 14:12:26 2006
Author:
jpellerin
Message:

Added scratch pad for new loader/selector/suite work

Files:

Legend:

Unmodified
Added
Removed
Modified
  • branches/new_loader/notes

    r115 r116  
    4 4  - certainly conf.working_dir shouldn't change, or if it does it has to be a  
    5 5    stack  
      6  - things that are mutable should be removed from conf and passed separately  
    6 7  
    7 8 tests and working dir should come out of conf and be passed to loader and  
     
    24 25          but we want to do that lazily, so we need to bundle up the  
    25 26          needed information into a callable and a LazySuite  
      27  
      28 loader.collectTests(working_dir, names=[]):  
      29  -> yield each test suite as found  
      30  
      31  
      32 suites:  
      33  
      34 ModuleSuite  
      35 ClassSuite  
      36 TestCaseSuite  
      37 GeneratorSuite  
      38 GeneratorMethodSuite  
      39  
      40  
      41  
      42 proxy suite may need to be mixed in by the collector when running under test  
  • branches/new_loader/nose/suite.py

    r113 r116  
    136 136 class LazySuite(TestSuite):  
    137 137     """Generator-based test suite. Pass a callable that returns an iterable of  
    138       tests, and a nose.config.Config. Also provides hooks (setUp and tearDown)  
    139       for suite-level fixtures.  
      138     tests, and a nose.config.Config.  
    140 139     """  
    141 140     # _exc_info_to_string needs this property  
  • branches/new_loader/nose/selector.py

    r113 r116  
    33 33          
    34 34         log.debug('tests to check: %s', self.tests)  
    35           matches = [ func(*test_tuple) for test_tuple in  
    36                       map(split_test_name, self.tests) ]  
      35         #matches = [ func(*test_tuple) for test_tuple in  
      36         #            map(split_test_name, self.tests) ]  
      37         matches = [ func(*test_tuple) for test_tuple in self.tests ]  
    37 38         log.debug('anytest matches: %s', matches)  
    38 39         res = filter(lambda x: x is not False, matches)