Unittests and serial workflows

Laura Creighton lac at openend.se
Sat Oct 31 02:42:55 EDT 2015


In a message of Sat, 31 Oct 2015 12:46:53 +1100, Chris Angelico writes:
>If the order of test execution affects the overall pass/fail of the
>test set, then yes, that's a problem. But if, as in the OP's example,
>some tests assume the correct operation of features tested
>individually elsewhere, it would be kinda nice to say "do these
>low-level tests first, and if they pass, go on to test these
>higher-level features". Is there a way to express that in unittest?
>
>ChrisA
>-- 
>https://mail.python.org/mailman/listinfo/python-list

I know how to do this with pytest
http://pytest.org/dev/example/parametrize.html#a-quick-port-of-testscenarios

Since this is a port of something Robert Collins wrote for unittest,
I am pretty sure you can do it there, as well, but I haven't researched
the how.

Laura



More information about the Python-list mailing list