Hello guys! Im a relative beginner with Behat, Im using Behat 3 the latest one, could someone point me to a good spot where I could find some info about loading fixtures (say per scenario or feature) ?
Amm I think we do not understand each other well, I mean, I would like to empty the database and fill in specific content after each feature or scenario is processed. I can do that with FriendlyContexts, I was just wondering if maybe there is something like this already in Behat? Something that would let me do Database operations before each test.
@Max101 clearing database is not about fixtures, it's about isolation. fill in specific content after each feature are fixtures. The question I am asking is why do you need these fixtures in the database after each feature?
Well I have a test environment set up which uses a test database, and yes I guess I would like to run some(not all) tests in isolation. And, to do that I wanted to prefill the database before each scenario with fixtures..
@Max101 you need to have case isolation. That's the primary rule of testing. But fixtures - if your scenarios require some information as a prerequisite, why not state this information in scenario itself?