-
Book Overview & Buying
-
Table Of Contents
Lift Application Development Cookbook
By :
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 the Seq libraryDependencies section in the build.sbt file:
"com.h2database" % "h2" % "1.3.167" % "test"
In the build.sbt file, set sbt to not execute tests in parallel using the following command:
parallelExecution in Test := false
In the test | resources folder, create a new folder called props and then inside this folder, create a file called test.default.props using the following...
Change the font size
Change margin width
Change background colour