From 943cd5f25532b021123325e8c19a1e682b0fa293 Mon Sep 17 00:00:00 2001 From: Actionb Date: Wed, 31 Jan 2024 09:51:40 +0100 Subject: [PATCH] Add option group for pytest-repeat arguments --- pytest_repeat.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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',