Pass exitstatus to pytest_terminal_summary hook#1809
Pass exitstatus to pytest_terminal_summary hook#1809nicoddemus merged 1 commit intopytest-dev:featuresfrom
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