pytest-dev / pytest-timeout

MIT License
206 stars 63 forks source link

Set timed_out attrib on reports for logging customization #90

Closed ep12 closed 11 months ago

ep12 commented 3 years ago

STATUS: draft...

In case the test timed out, set report.timed_out = True. That makes it easier to customize the output in case of timeouts. This commit also adds a small section to the README including a small example.

Motivated by #87.

ep12 commented 3 years ago

Should I :cherries:-pick 3df12507fbe4aab51021002c3222c8e27aafc47e, too?

flub commented 3 years ago

Should I cherries-pick 3df1250, too?

I'm not really sure what that looks like, could you post example output somewhere? I think it would be best to not re-use this PR for that though, up to you if you re-use your existing issue or create a new issue or create a new PR.

ep12 commented 3 years ago

I added a small test for this feature. Hopefully this isn't missing anything...

flub commented 11 months ago

closing as no one seems to be working on this anymore.