[TIP] py.test doesn't appear to consider testscenarios tests to be distinct tests
Ronny Pfannschmidt
Ronny.Pfannschmidt at gmx.de
Mon Feb 11 06:06:42 PST 2013
Hi Robert,
i have to revise my investigation after reading the run method the
WithScenarios mixin adds
that one is quite a mess because it runs all scenarios on the test itself
py.test asumes that a TestCase run will run one test, not all scenarios
i would like to see testscenarios fail there because it really should be
propperly collected instead of just running N tests on a single testcase
run invocation
-- Ronny
On 02/10/2013 11:38 PM, Robert Collins wrote:
> 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
>
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python
More information about the testing-in-python
mailing list