© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
T. R. SharpIntroducing Micronauthttps://doi.org/10.1007/978-1-4842-8290-8_7

7. Testing the Persistence Tier with Testcontainers

Todd Raymond Sharp1  
(1)
Blairsville, GA, USA
 
Now that we’ve got a functional persistence tier in place, the next step is to update our workflow to deploy the application and any new dependencies to production, right? No, of course not! We haven’t yet written the necessary tests to ensure a bug-free production build, so of course we’ll focus on that in this chapter. But, since our CI/CD pipeline executes on GitHub’s “runner” VMs, how can we test our persistence tier? Well, we could spin up an additional “test” database instance, but ...

Get Introducing Micronaut: Build, Test, and Deploy Java Microservices on Oracle Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.