Skip to content

Commit

Permalink
Allow the use of ddtrace for E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed Sep 9, 2021
1 parent 08e40a1 commit 11e0663
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@
@click.option('--new-env', '-ne', is_flag=True, help='Execute setup and tear down actions')
@click.option('--profile-memory', '-pm', is_flag=True, help='Whether to collect metrics about memory usage')
@click.option('--junit', '-j', 'junit', is_flag=True, help='Generate junit reports')
@click.option('--ddtrace', is_flag=True, help='Run tests using dd-trace-py')
@click.option('--filter', '-k', 'test_filter', help='Only run tests matching given substring expression')
@click.option('--changed', is_flag=True, help='Only test changed checks')
@click.pass_context
def test(ctx, checks, agent, python, dev, base, env_vars, new_env, profile_memory, junit, test_filter, changed):
def test(ctx, checks, agent, python, dev, base, env_vars, new_env, profile_memory, junit, ddtrace, test_filter, changed):
"""Test an environment."""
check_envs = get_tox_envs(checks, e2e_tests_only=True, changed_only=changed)
tests_ran = False
Expand Down Expand Up @@ -105,6 +106,7 @@ def test(ctx, checks, agent, python, dev, base, env_vars, new_env, profile_memor
e2e=True,
passenv=' '.join(persisted_env_vars) if persisted_env_vars else None,
junit=junit,
ddtrace=ddtrace,
test_filter=test_filter,
latest=env == 'latest',
)
Expand Down

0 comments on commit 11e0663

Please sign in to comment.