Month: September 2016

Loading test data with ScalaTest + Play

comment 1
Dev

The ScalaTest + Play library provides a couple of useful traits for when your ScalaTest Play Framework functional tests need a running application for context. The [crayon-5f2b50853d2b0819653936-i/] trait will share the same [crayon-5f2b50853d2b9209254262-i/] instance across all tests in a class whereas the [crayon-5f2b50853d2bc757900460-i/] trait gives each test its own [crayon-5f2b50853d2bf957225315-i/] instance. These traits will ensure you have a running application for your tests but if you want to test code that operates on a database […]