On Thu, Jan 16, 2020 at 9:56 PM Brian Theado <brian.the...@gmail.com> wrote:

> ...the @pytest.mark.xfail decorator (
https://docs.pytest.org/en/latest/skipping.html#xfail-mark-test-functions-as-expected-to-fail)
is useful for "a bug not yet fixed" which sounds like what you are describin
g

Thanks for this. It would have been useful.

Here are two replies to my original posts.

>> All the "one-line tests" run, even if some fail.

This is the key condition, no matter how it is accomplished. It's a matter
of attitude/technique.

>> It's also convenient to "pretend" that the test passes even when it
doesn't. That way the -x (fail fast) option doesn't bother us.

The easy way is not to use -x. Again, it's a matter of attitude/technique.
When using pytest --cov we *always* want to run all the tests.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3%3D6aFo%3D%2BbVYp-gtQbpbMkbUJ5rfpL1riEZUgFYx%3Dc%2Bag%40mail.gmail.com.

Reply via email to