[TIP] Tipp: Ordering Test Files

Bruno Oliveira nicoddemus at gmail.com
Wed Oct 10 11:56:14 PDT 2018


On Wed, Oct 10, 2018 at 3:52 PM Gregory P. Smith <greg at krypto.org> wrote:

> Indeed.  I find more value in test runners that effectively randomize the
> order.  It makes flaky tests with side effects that leak out apparent,
> improving the overall health of your test suite.  test_b was passing only
> because test_a did something that made test_b's test not do what was
> intended?  you'll find out rather than potentially hiding a bug.
>

Agreed, just want to mention the pytest-randomly plugin:
https://pypi.org/project/pytest-randomly.

Cheers,
Bruno.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20181010/ad78fe0e/attachment-0001.htm>


More information about the testing-in-python mailing list