mrtnzlml-archive / testbench

:green_apple: Simple integration testing tool for Nette applications
http://zlml.cz/jednoduche-testovani-pro-uplne-kazdeho
41 stars 13 forks source link

Using with prepared testing database #38

Closed clovnrian closed 8 years ago

clovnrian commented 8 years ago
mrtnzlml commented 8 years ago

My intention is take a look at this PR as soon as possible. Just letting you know I am aware of this request. Be patient please... :)

clovnrian commented 8 years ago

Thanks for applying some of my changes. I tried your changes in our project and the share database is not what we need. We create SQLite database for tests, so we just need to use the database connection specified in configuration file without any database setup. I will decline my pull request and when I have time I will try add SQLite support to the library.

mrtnzlml commented 8 years ago

Yeah, the thing is that at this moment SQLite is not supported and if you are using for example MySQL in your production - then you should use MySQL in tests. No matter what.

At this moment I have to figure out better database handling in general and after that the database drivers refactoring in Testbench is crucial. Current design is bad and I don't like it. But overall it works quite well (but only with supported databases obviously).

Thanks for understanding, patience and help... :)