Example #1
0
def main(args=None):
    try:
        arguments = docopt(__doc__, argv=args, version=APPVSN)
    except DocoptExit as usage:
        print(usage)
        sys.exit(1)
    path = os.getcwd()
    logger.configure(arguments['--log-level'], not arguments['--no-color'])
    result = run_tests(path, arguments)
    if result:
        sys.exit(0)
    else:
        sys.exit(1)
 def __init__(self, test_name, method_name):
     super().__init__(method_name)
     self._test_name = test_name
     self._test_dir = test.get_test_dir(test_name)
     logger.configure('debug')
     get_logger().setLevel('DEBUG')
Example #3
0
 def __init__(self, test_name, method_name):
     super().__init__(method_name)
     self._test_name = test_name
     self._test_dir = test.get_test_dir(test_name)
     logger.configure('debug')
     logger.log_storage = EmptyLogStorage('empty')