Automated testing and fixtures


(Adam Wierzynkiewicz) #1

Hi all,

I’m having a bit of a trouble with automated tests implementation.

I’m specifying fixtures within _fixtures() method for every test suite I build. It’s all fine when I run each test suite separately. When I run them all at once the _fixtures() method gets called only for the first test suite and therefore subsequent tests fail because of their data missing.

I’m aware that I can call haveFixtures() method - I would like to avoid that though and have the fixtures loaded automatically before each test suite no matter if I run them on their own all in a bunch.

This feels like an inconsistency/bug to me - am I missing something here? If this is by design, how can I workaround it in the most clean way possible?

Thanks!