Integration Tests Setup
Learn how to set up integration tests for our pure service using a BaseSpec.
We'll cover the following
What do we have left to test?
It seems the only parts left to test are the FlywayDatabaseMigrator
and our DoobieRepository
classes. Testing them will require a running database, so we leave the cozy world of unit tests behind and venture into integration test land. But fear not, we already have some — albeit impure — experience here.
BaseSpec
for pure integration tests
As usual, we start by implementing a base class that we can use to provide common settings and functions across our tests.
Get hands-on with 1400+ tech skills courses.