From efbf2c506033f73cc2af11fd014fe684eadb3f4c Mon Sep 17 00:00:00 2001 From: Ofek Lev Date: Tue, 21 Mar 2023 18:53:26 -0400 Subject: [PATCH] Allow enabling of tracing for tests with an environment variable (#14206) --- datadog_checks_dev/datadog_checks/dev/tooling/commands/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/commands/test.py b/datadog_checks_dev/datadog_checks/dev/tooling/commands/test.py index e35de4e95fd6b..288bd339df06f 100644 --- a/datadog_checks_dev/datadog_checks/dev/tooling/commands/test.py +++ b/datadog_checks_dev/datadog_checks/dev/tooling/commands/test.py @@ -31,7 +31,7 @@ @click.option('--bench', '-b', is_flag=True, help='Run only benchmarks') @click.option('--latest', is_flag=True, help='Only verify support of new product versions') @click.option('--e2e', is_flag=True, help='Run only end-to-end tests') -@click.option('--ddtrace', is_flag=True, help='Run tests using dd-trace-py') +@click.option('--ddtrace', is_flag=True, envvar='DDEV_TEST_ENABLE_TRACING', help='Run tests using dd-trace-py') @click.option('--cov', '-c', 'coverage', is_flag=True, help='Measure code coverage') @click.option('--cov-missing', '-cm', is_flag=True, help='Show line numbers of statements that were not executed') @click.option('--junit', '-j', 'junit', is_flag=True, help='Generate junit reports')