[TIP] py.test doesn't appear to consider testscenarios tests to be distinct tests
julian at grayvines.com
Sun Feb 10 14:48:29 PST 2013
Thanks for the responses so far.
I had seen the snippet, but I try to stay runner-agnostic when possible.
I'll play around with it a bit more to see if I can mold it into something
I can still use when not running via pytest.
On Feb 10, 2013 5:46 PM, "Robert Collins" <robertc at robertcollins.net> wrote:
> On 11 February 2013 11:42, holger krekel <holger at merlinux.eu> wrote:
> > Hi Julian,
> > however, i guess you are aware of this testscenario/pytest porting
> > It allows to use pytest with scenario definitions. It's passing the
> > argument in rather than setting an instance attribute. If you use this
> > method, it's also fully compatible with all other pytest options and
> > parametrization methods and scopes (see on that page for more examples),
> > and of course generally compatible to the fixture dependency injection
> > mechanism (http://pytest.org/latest/fixture.html)
> Hi Holger, I wasn't aware of that.
> Julian, testscenarios.generate_scenarios may help - you can do the
> parameterisation at collection time which sounds like it would work
> better for py.test.
> Robert Collins <rbtcollins at hp.com>
> Distinguished Technologist
> HP Cloud Services
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python