How to fail rather than emit warning #63
-
I've noticed that a misconfigured annotation will emit a warning like the following:
Is there a way to configure pytest-order such that it fails rather than emits a warning when it detects an error like this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
No, there isn't, though that could be added - probably via some kind of |
Beta Was this translation helpful? Give feedback.
-
@mrbean-bremen thanks for the quick response -- is there a way to get pytest-order to skip tests that are ordered after skipped/failed tests? I understand this isn't explicitly the focus on pytest-order but pytest-dependency is currently is an unstable/unreliable state. |
Beta Was this translation helpful? Give feedback.
No, there isn't, though that could be added - probably via some kind of
strict
option, that would cause an exception instead of a warning in these cases. I'm open to suggestions...