Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a --debug (-d) flag to ddev env test #12379

Merged
merged 1 commit into from
Jun 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,23 @@
@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.option('--debug', '-d', is_flag=True, help='Set the log level to debug')
@click.pass_context
def test(
ctx, checks, agent, python, dev, base, env_vars, new_env, profile_memory, junit, ddtrace, test_filter, changed
ctx,
checks,
agent,
python,
dev,
base,
env_vars,
new_env,
profile_memory,
junit,
ddtrace,
test_filter,
changed,
debug,
):
"""Test an environment."""
check_envs = get_test_envs(checks, e2e_tests_only=True, changed_only=changed)
Expand Down Expand Up @@ -104,7 +118,7 @@ def test(
ctx.invoke(
test_command,
checks=[f'{check}:{env}'],
debug=DEBUG_OUTPUT,
debug=debug or DEBUG_OUTPUT,
e2e=True,
passenv=' '.join(persisted_env_vars) if persisted_env_vars else None,
junit=junit,
Expand Down