Newer
Older
--resource: Select specific resource to test
--namespace: Use specific namespace to look for resource
See https://docs.pytest.org/en/stable/example/simple.html#pass-different-values-to-a-test-function-depending-on-command-line-options
"""
parser.addoption(
"--resource", action="store", default="all",
help="Name of the resource to test, default: all"
parser.addoption(
"--namespace", action="store", default="",
help="Namespace of the resource to test, default: <empty>"
return request.config.getoption("--resource")