mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 22:14:28 +01:00
Add ability to run multiple tests (#5233)
Add multiple tests Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user