<div dir="ltr"><div dir="ltr">Hi Maximilian,<div><br></div></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 26, 2020 at 7:29 PM Maximilian Roos <<a href="mailto:m@maximilianroos.com">m@maximilianroos.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><br><div>To prefix: as a long time user and evangelizer of pytest, a big thank you for the superb tool.<br></div></div></div></div></blockquote><div><br></div><div>Thanks for the kind words, we appreciate it.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>As per that README, it only works on the first failure, because the test doesn't continue execution beyond that. <u>Is there any way of allowing execution to continue, without ripping up the internals of pytest?</u> My prior is "no", since the assertion rewrite still retains an assertion, and there's no hook for changing that.<br></div></div></div></div></blockquote><div><br></div><div>Not at the moment I'm afraid. </div><div><br></div><div>I think it should be possible to implement a hook that transforms the AST, which our rewriter would then call. I think, with this hook in place, you would be able to rewrite assert statements into a function call of your plugin, which would then be free to do whatever it wanted. If you are interested, I suggest writing up a proposal in the issue tracker so it can be discussed.</div><div><br></div><div>Cheers,</div><div>Bruno</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><br></div><div>Ref: a similar question I asked @okken <a href="https://github.com/okken/pytest-check/issues/32" target="_blank">https://github.com/okken/pytest-check/issues/32</a> </div><div><br></div><div>Thank you,</div><div>Max</div></div>
</div></div>
_______________________________________________<br>
pytest-dev mailing list<br>
<a href="mailto:pytest-dev@python.org" target="_blank">pytest-dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/pytest-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/pytest-dev</a><br>
</blockquote></div></div>