'Runs the tests returning True if all tests pass, otherwise False.
If sort=False run tests in random order.'

def test(self, sort=False, timeout=False, slow=False, enhance_asserts=False):

    if sort:
        self._testfiles.sort()
    elif slow:
        pass
    else:
        random.seed(self._seed)
        random.shuffle(self._testfiles)
    self._reporter.start(self._seed)
    for f in self._testfiles:
        try:
            self.test_file(f, sort, timeout, slow, enhance_asserts)
        except KeyboardInterrupt:
            print('    interrupted    by    user')
            self._reporter.finish()
            raise
    return self._reporter.finish()
