diff --git a/pytest_repeat.py b/pytest_repeat.py index 008b692b..e94945e7 100644 --- a/pytest_repeat.py +++ b/pytest_repeat.py @@ -8,14 +8,15 @@ def pytest_addoption(parser): - parser.addoption( + group = parser.getgroup('pytest-repeat') + group.addoption( '--count', action='store', default=1, type=int, help='Number of times to repeat each test') - parser.addoption( + group.addoption( '--repeat-scope', action='store', default='function',