Hello and first of all I want to say thanks for this wonderful Laracasts website, I love it!
I am trying to set up a CodeCeption automated workflow with Gulp and Homestead as my server locally.
I have one problem, I want to run migrations everytime I start a test. How can I do that?
I've been searching around the web and not found a good solution to this, so I'm starting to wonder if I'm thinking about how this tests should be run, maybe I am thinking in wrong way. I am using SQLite and I don't know how to export a dump, maybe that's the way I should work or how should I run codeception with a up to date database structure?
Use a testing database ! Codeception changes your environment to testing, when starting your tests.
You need to specify a different "testing-database" (duplicate an empty one) in your testing environment and Codeception will clean it after every test run.
You could either do that in a .env.testing.php file, create a database.php config-file with changed settings in a testing folder or change it manually.