How to create unit tests against non in-memory database such as MySQL in Play framework, with resetting to known state?

后端 未结 5 1967
梦谈多话
梦谈多话 2020-12-23 12:34

I want to create unit tests that cover code that use relational database in Play framework 2.1.0. There are many possibilities for this and all cause problems:

Test

5条回答
  •  情歌与酒
    2020-12-23 12:40

    Anybody used this approach (making evolutions compatible with both MySQL and H2)?

    I have found an answer for the MySQL specific features: How can I unit test for MySQL database with Play 2.x?

提交回复
热议问题