ejnnr / web-chess

A web implementation of a chess database program like Scid.
MIT License
7 stars 4 forks source link

Improve unit testing setup #14

Closed ejnnr closed 9 years ago

ejnnr commented 9 years ago

Until now the database was reseeded every time a testsuite was run. First of all this is slow but it also overwrites any data in the tables. Another problem was that travis-ci build would fail because the database was not set up. This PR fixes all of the above problems by using a in-memory sqlite database for phpunit. Also .travis.yml has been changed to let travis-ci download packages from source directly.