def pytest_addoption()

in pytest_rally/plugin.py [0:0]


def pytest_addoption(parser):
    group = parser.getgroup('rally')
    group.addoption("--generate-tests-for-class",
                    action="store",
                    dest="test_class",
                    default="TestTrackRepository",
                    help=("Name of the class for which to auto-generate tests\n"
                          "(default: `TestTrackRepository`)"))
    group.addoption("--distribution-version",
                    action="store",
                    default=None,
                    help=("Download and run tests with a specific ES release\n"
                          "(default: None)\n"
                          "(mutually exclusive with: `--es-revision`)"))
    group.addoption("--revision",
                    action="store",
                    default=None,
                    help=("Build and run tests with a specific ES commit\n"
                          "(default: 'current')\n"
                          "(mutually exclusive with: `--distribution-version`)"))
    group.addoption("--skip-autogenerated-tests",
                    action="store_true",
                    default=False,
                    help=("If provided, auto-generated tests will be skipped\n"
                          "(default: False)"))
    group.addoption("--debug-rally",
                    action="store_true",
                    default=False,
                    help=("If provided, Rally commands will just be logged, not executed."))