Unit test in Play! Framework with Slick


The play framework includes some pretty good integration/documentation on how to perform testing however most of it relies on requiring a Play! application to be created (i.e. FakeApplication) and the fact that they share the same database. The second point was the more troublesome one, since in ScalaTest the tests are run in parallel. The following is what I have done to get around these problems.

The above code makes re-use of the Evolution plugin provided by Play! The code creates Evolution objects (which contain UpSQL and DownSQL statements) and we can apply them on a before / after method before each test.

4 Replies to “Unit test in Play! Framework with Slick”

  1. Hey,

    Great work with the plugins, been using your bits for a few years now! Any news on the hypem scraper site coming back online?

    Also, your plugin for hypem seems to have lost the ability to add the names of the songs, we just get a gibberish song title now. Can you look into this for us?



  2. Also,

    Could you potentially create a ‘Download top 50’ button that essentially clicks all the download buttons for the first 50 tracks?

    I’m sure a lot of people like myself use your plugin on the time machine section of the website, and so it would be a great addition to be able to download everything in one go!

    1. Hey, there has been a change to Chrome where they dis-allow setting the filename for downloading files in the manner at which I am doing them.
      I am looking for alternatives but in the mean time I dont think I have a great answer 🙁

Leave a Reply

Your email address will not be published. Required fields are marked *