Ejemplo n.º 1
0
                      "--strict",
                      dest="strict",
                      default='low',
                      metavar='str',
                      help="strictness for testing precision: [%s]" %
                      " ,".join(all_strict))

    xunit_plugin = Xunit()
    # Make sure this plugin get called by setting its score to be the highest.
    xunit_plugin.score = 1000000
    xunit_plugin.enabled = True

    # Set up a dummy env for xunit to parse. Note we are using nose's xunit,
    # not the one bundled in yt
    env = {"NOSE_XUNIT_FILE": "nosetests.xml"}
    xunit_plugin.options(parser, env)

    answer_plugin = AnswerTesting()
    answer_plugin.enabled = True
    answer_plugin.options(parser)
    reporting_plugin = ResultsSummary()
    reporting_plugin.enabled = True
    pdb_plugin = debug.Pdb()

    all_suites = ['quick', 'push', 'full']
    suite_vars = [suite + "suite" for suite in all_suites]
    testproblem_group = optparse.OptionGroup(parser,
                                             "Test problem selection options")
    testproblem_group.add_option(
        "",
        "--suite",