test/BakeTestSuite.py
changeset 110 0c334295c28f
parent 107 867f23474b38
child 112 7d1a0938bb80
equal deleted inserted replaced
109:d4e30338e826 110:0c334295c28f
     8 import unittest
     8 import unittest
     9 
     9 
    10 # finds the test files, should start with Test and finnish with .py
    10 # finds the test files, should start with Test and finnish with .py
    11 test_file_strings = glob.glob('Test*.py')
    11 test_file_strings = glob.glob('Test*.py')
    12 
    12 
    13 # test_file_strings = ["TestBake.py"]
    13 #test_file_strings = ["TestModuleSource.py"]
    14 # puts the file in the format of modules to be imported
    14 # puts the file in the format of modules to be imported
    15 module_strings = ["test."+str[0:len(str)-3] for str in test_file_strings]
    15 module_strings = ["test."+str[0:len(str)-3] for str in test_file_strings]
    16 
    16 
    17 # search for the tests on the modules
    17 # search for the tests on the modules
    18 suites = [unittest.defaultTestLoader.loadTestsFromName(str) for str
    18 suites = [unittest.defaultTestLoader.loadTestsFromName(str) for str