Add ability to run multiple tests (#5233)

Add multiple tests

Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
This commit is contained in:
merwanehamadi
2023-09-16 13:01:11 -07:00
committed by GitHub
parent 454b78c1ac
commit b101fec16b
4 changed files with 24 additions and 7 deletions

View File

@@ -192,8 +192,12 @@ def generate_tests() -> None: # sourcery skip: invert-any-all
continue
# --test flag, only run the test if it's the exact one specified
test_flag = "--test" in commands
if test_flag and data["name"] not in commands:
tests = []
for command in commands:
if command.startswith("--test="):
tests.append(command.split("=")[1])
if tests and data["name"] not in tests:
continue
# --maintain and --improve flag