@staticmethod
def add_force_flaky_options(add_option):
    """
        Add options to the test runner that force all tests to be flaky.

        :param add_option:
            A function that can add an option to the test runner.
            Its argspec should equal that of argparse.add_option.
        :type add_option:
            `callable`
        """
    add_option('--force-flaky', action='store_true', dest='force_flaky',
        default=False, help=
        'If this option is specified, we will treat all tests as flaky.')
    add_option('--max-runs', action='store', dest='max_runs', type=int,
        default=2, help=
        'If --force-flaky is specified, we will run each test at most this many times (unless the test has its own flaky decorator).'
        )
    add_option('--min-passes', action='store', dest='min_passes', type=int,
        default=1, help=
        'If --force-flaky is specified, we will run each test at least this many times (unless the test has its own flaky decorator).'
        )
