[TIP] py.test doesn't appear to consider testscenarios tests to be distinct tests

Robert Collins robertc at robertcollins.net
Sun Feb 10 14:38:25 PST 2013


On 11 February 2013 11:17, Ronny Pfannschmidt <Ronny.Pfannschmidt at gmx.de> wrote:
> Hi Julian,
>
> i did a quick investigation on the py.test issue

Thanks

> the basic mechanism of py.test collecting is
> running a unittest collection on the unittest TestCase class,
> then just gets the test names back and creates test the instances from that
>
> this loses the scenario configurations and the values are None instead of
> the scenario values

Sounds like it will break testresources too, which has a semantic
TestSuite - the OptimisingTestSuite.

-Rob



More information about the testing-in-python mailing list