Until now, we have learned how to integrate our Lift application with the database using Record and Squeryl. Now it is time to learn, similar to what we did in Chapter 5, Working with Databases, about how to test an application that uses these two components: Record and Squeryl.
We will modify the project that we have worked on in the previous recipe. Again, you can modify it directly or create a new one by duplicating it.
To modify an old or a new project, perform the following steps:
Add
h2
as a new dependency into theSeq libraryDependencies
section in thebuild.sbt
file:"com.h2database" % "h2" % "1.3.167" % "test"
In the
build.sbt
file, setsbt
to not execute tests in parallel using the following command:parallelExecution in Test := false
In the
test
|resources
folder, create a new folder calledprops
and then inside this folder, create a file calledtest.default.props
using the following...