class TestClassDistribution(PluginTester, TestDistributionBase): plugins = [DistributedNose()] suitepath = 'tests.dummy_tests' activate = '--nodes=3' args = [ '--node-number=1', '-v', # get test names into output ]
class TestClassDistribution(PluginTester, unittest.TestCase): plugins = [DistributedNose()] suitepath = 'tests.dummy_tests' activate = '--nodes=3' args = [ '--node-number=1', '-v' # get test names into output ] def _tests_run(self): test_lines = str(self.output).split('\n\n')[0].split('\n') return [line.split(' ... ')[0] for line in test_lines]
class TestLptDistribution(PluginTester, TestDistributionBase): plugins = [DistributedNose()] suitepath = 'tests.dummy_tests' activate = '--nodes=3' args = [ '--algorithm=least-processing-time', '-v' # get test names into output ] lpt_all_filepath = os.path.join(os.path.dirname(__file__), 'lpt_data', 'lpt_all.json') lpt_partial_filepath = os.path.join(os.path.dirname(__file__), 'lpt_data', 'lpt_partial.json')
def setUp(self): self.plugin = DistributedNose() self.parser = OptionParser()