def METHOD_NAME(max_jobs=None, stop_on_first_err=True, with_spinner=True):
    """run the tests"""
    # pylint: disable=R0914,R0912
    print(f'max parallel jobs: {max_jobs}')
    print(f'stop on first error: {stop_on_first_err}')
    print(f'use spinner: {with_spinner}')
    tests = get_tests()
    print(f'running {len(tests)} test(s)\n')
    print()
    failed = 0
    success = 0
    spinner = None
    logfd = sys.stdout
    if not is_cicd() and with_spinner:
        # no spinner on github actions
        spinner = Halo(text='Testing', spinner='bouncingBall')
        spinner.start()
        logfd = None
    with futures.ThreadPoolExecutor(max_workers=max_jobs) as ex:
        wait_for = {}
        for test in tests:
            j = ex.submit(run_test, logfd, test)
            wait_for[j] = test
        for test in futures.as_completed(wait_for.keys()):
            try:
                ret, reason, name, (log_out, log_err) = test.result()
            # pylint: disable=W0703
            except Exception as exc:
                failed += 1
                print()
                print(f'test \"{wait_for[test]}\" failed (exception): {exc}')
                if stop_on_first_err:
                    ex.shutdown(wait=False)
                    for job in wait_for:
                        job.cancel()
                if stop_on_first_err:
                    return False
            if not ret:
                failed += 1
                print()
                if stop_on_first_err:
                    print(log_out)
                    print(log_err)
                print(f'test \"{name}\" failed ({ret}): {reason}')
                if stop_on_first_err:
                    ex.shutdown(wait=False)
                    for job in wait_for:
                        job.cancel()
                    return False
            else:
                success += 1
        sys.stdout.write('\n')
    if spinner:
        spinner.stop()
    print()
    print(f'done - ran {len(tests)} test(s)\n')
    if not stop_on_first_err:
        print(f'{failed}/{failed+success} failed tests')
    return failed < 1