-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Pass exitstatus to pytest_terminal_summary hook #1809
Pass exitstatus to pytest_terminal_summary hook #1809
Conversation
This uses a instance to store the exitstatus from `pytest_sessionfinish`, although that could probably just also be done on the module?! With `exitstatus` as an argument to the `pytest_terminal_summary` hook it would be easier (pytest-dev/pytest#1809).
I came up with it for ratson/pytest-notifier#3. But then I wonder if it could be just stored on the module level from the |
This is useful to know if a testrun has been interrupted (EXIT_INTERRUPTED).
13f0b34
to
5b95ee3
Compare
Thanks @blueyed! 👍 |
@nicoddemus |
Sorry I missed them!
Not sure what do you mean here, care to elaborate?
I did it myself in 4971525. 😁 |
What I did in ratson/pytest-notifier#3 works already. So just getting the exitstatus in the |
Anyway, I still think it's fine to have it a bit easier and since it's merged already: 🎆 |
I agree! 😁 |
This is useful to know if a testrun has been interrupted
(EXIT_INTERRUPTED).
CHANGELOG.rst