O, everything is good.
I have one more question with workflow with this tests library… When I do this tests my database was removed, so for restore I need to do vendor/bin/reset-shop
.
When I want to do the tests on my development machine I don’t want to delete all information from database…
I try to set install_shop
to false, but it did not help.
I saw that I can specify other database to run tests but I also create this databse and set the test_database_name
to db_tests
(which I created before on the same server and for the same user). Now I reset the shop and again run tests. And I get errors like:
Failed to install shop with message: PDO error code: 42S22 in function query – Unknown column ‘oxserial’ in ‘field list’ – update oxshops set oxserial = ‘… serial here …’
Maybe you will bring me closer to workflow with this testing library?
A lot of thanks to you for your previous help!
===== EDIT
Ok I change:
database_restoration_class: LocalDatabaseRestorer
and:
restore_shop_after_tests_suite: true
And I think the database was restored to previous state after tests…
But still I am interesting with your workflow with testing library