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

enhancement: ability to trace known failing or even passing test cases #890

Open
jhump opened this issue Jun 14, 2024 · 1 comment
Open

Comments

@jhump
Copy link
Member

jhump commented Jun 14, 2024

Currently, the --trace flag enables traces for unexpected failing test cases. But it can be useful to see traces for known-failing test cases. And it can even be useful sometimes to see the traces for passing test cases -- like to compare two different implementations and see what a "good" trace looks like vs. a "bad" trace for a test case failure.

An easy way to add this into the current command-line interface could be with two new flags:

  1. --trace-known-failing: causes traces for known-failing and known-flaky test cases to be shown
  2. --force-trace <pattern>: causes traces to be shown for test cases that match the pattern, regardless of whether they pass or fail.
@timostamm
Copy link
Member

I would find traces for passing tests very useful. IMO it's sufficient to enable tracing for all outcomes for all tests with --trace --vv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants