You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TestRunner struct in runner/test.go has a Trace field, and Viper binds struct fields to variables case-insensitively. Even though the struct tag mapstructure:"trace" is missing I think this should work.
Upon closer inspection, I was setting the output flag to table, which seems to override trace, which I did not expect and falsely attributed to the flag not working.
tonglil
changed the title
CONFTEST_TRACE env var does not set --trace flag
CONFTEST_TRACE env var / --trace flag is not respected when --output=tableJan 29, 2025
tonglil
changed the title
CONFTEST_TRACE env var / --trace flag is not respected when --output=table
Trace is not outputted when --output=tableJan 29, 2025
As of v0.55.0, the CONFTEST_TRACE env var does not seem to set theconftest test --trace
flag.I expected the trace to still be displayed even if the output is set to something else.
The text was updated successfully, but these errors were encountered: