#testcontainers

[ follow ]
Medium
6 months ago
Scala

ScalaTestTestcontainers

Testcontainers is a library for using Docker containers in test code, supporting clean testing of DB and file system components.
Using Testcontainers for ScalaTest involves tips like reusing containers for efficiency and implementing Singleton Container Pattern. [ more ]
Medium
9 months ago
Scala

Using TestContainers in Scala with Spark for real unit testing

TestContainers is a technology that allows you to spin up docker containers programmatically for testing purposes.
This article provides a step-by-step guide on how to set up a Scala project using SBT and write a test that reads from a PostgreSQL database created through TestContainers using Spark. [ more ]
[ Load more ]