make some cli arguments required
This commit is contained in:
parent
3b0edb97f7
commit
15a7f94a01
1 changed files with 3 additions and 4 deletions
|
|
@ -11,14 +11,13 @@ from pytest_abra.utils import get_datetime_string
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument("--env_paths", type=str, help="List of loaded env files separated with ;")
|
parser.add_argument("--env_paths", type=str, help="List of loaded env files separated with ;", required=True)
|
||||||
parser.add_argument("--recipes_dir", type=Path, help="List of loaded env files separated with ;")
|
parser.add_argument("--recipes_dir", type=Path, help="List of loaded env files separated with ;", required=True)
|
||||||
parser.add_argument("--output_dir", type=Path, help="List of loaded env files separated with ;")
|
parser.add_argument("--output_dir", type=Path, help="List of loaded env files separated with ;", required=True)
|
||||||
parser.add_argument("--timeout", type=int, help="Set Playwright timeout in ms", default=20_000)
|
parser.add_argument("--timeout", type=int, help="Set Playwright timeout in ms", default=20_000)
|
||||||
parser.add_argument("--debug", action="store_true", help="Enable Playwright debug mode")
|
parser.add_argument("--debug", action="store_true", help="Enable Playwright debug mode")
|
||||||
parser.add_argument("--resume", action="store_true", help="Re-run the most recent test, skipping passed tests")
|
parser.add_argument("--resume", action="store_true", help="Re-run the most recent test, skipping passed tests")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
ENV_FILES = [Path(s) for s in args.env_paths.split(";")]
|
ENV_FILES = [Path(s) for s in args.env_paths.split(";")]
|
||||||
|
|
||||||
# -------------------------- enable playwright debug ------------------------- #
|
# -------------------------- enable playwright debug ------------------------- #
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue