So let’s combine our routes and run the test via test on the sbt console. Click on the Run button of the SPA widget given at the bottom of the lesson, and wait for the environment to set up. We pull a docker image with the pre-configured environment to save you the hassle of setting up the environment on your own.
Once set up, you will need to perform the following steps:
Step-1: Start the database
First, start the PostgreSQL database within the container. We can do that by using the following command:
1
service postgresql start
Start PostgreSQL
Step-2: Execute the tests
Once the database is up, you can execute all the tests by using the following command:
1