Example #1
0
def main():
    config = Configuration(Defaults.CONFIG_FILE)
    behaviour_suite = build_suite_for(config.behaviour_test_names())
    spec_suite = build_suite_for(config.spec_test_names())
    runner = unittest.TextTestRunner(verbosity=0)
    print "Unit Tests"
    runner.run(spec_suite)
    print "\nBehaviour Tests"
    runner.run(behaviour_suite)
    return 0
Example #2
0
def class_loader(class_name):
    CONFIG = Configuration(Defaults.CONFIG_FILE)
    return __load__(CONFIG.class_path(class_name), class_name)