Making your own Making yourmodule own Testcontainers for fun and profit! Testcontainers module
for fun and profit!
Slide 2
What is productivity? The developer-centric approach to measuring and improving productivity. Abi Noda, DX Margaret-Anne Storey, University of Victoria Nicole Forsgren, Microsoft Research Michaela Greiler, DX
https://queue.acm.org/detail.cfm?id=3595878
Slide 3
Slide 4
TESTS
Slide 5
Slide 6
Slide 7
Slide 8
Test dependencies as code
Testcontainers is an open source library for providing ephemeral, lightweight instances of test dependencies.
var redis = new GenericContainer(“redis:6-alpine”).withExposedPorts(6379)
Slide 9
Testcontainers: Test dependencies with real services wrapped in Docker containers var granite = new GenericContainer(“redhat/granite-7b-lab-gguf”).withCommand(“—serve”)
Testcontainers Library
Testcontainers Desktop
Testcontainers Cloud
Fast, reasistic, cost-effective dependencies
Better local development and debugging experience
Operationalize and roll out Testcontainers across the teams
Slide 10
Testcontainers modules Test against any database, message broker, browser… or just about anything that runs in a Docker container!
Slide 11
start.spring.io has it :)
Slide 12
Slide 13
Testcontainers module functionality
Container & Service Configuration Lifecycle API Convenience methods
https://github.com/testcontainers/java-module-worksh op https://github.com/testcontainers/workshop https://testcontainers.com/desktop https://slack.testcontainers.com