I've started using playframwork (scala) and I'm writing some tests. Before starting them I'd like to put in some mock data in my db (mongo) and later on when the tests are over remove this data. I've got the code to put/remove this data but can't figure out how to consistently get this done before/after the tests are run.
I'm using the "specs2" testing library that comes with playframework but was unable to find any docs on how this can be done with specs.
Do you know how this can be done with specs? or can recommend another well known testing lib for playframework that I should use instead of specs?