feat: allow configuring coverage from envvar (#24788)

This commit is contained in:
Ankush Menat 2024-02-06 15:36:48 +05:30 committed by GitHub
parent d6b126ac6f
commit 33d0db364b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -791,7 +791,12 @@ def run_tests(
@click.option("--app", help="For App", default="frappe")
@click.option("--build-number", help="Build number", default=1)
@click.option("--total-builds", help="Total number of builds", default=1)
@click.option("--with-coverage", is_flag=True, help="Build coverage file")
@click.option(
"--with-coverage",
is_flag=True,
help="Build coverage file",
envvar="CAPTURE_COVERAGE",
)
@click.option("--use-orchestrator", is_flag=True, help="Use orchestrator to run parallel tests")
@click.option("--dry-run", is_flag=True, default=False, help="Dont actually run tests")
@pass_context