The Golden Path to SpringOne: Mastering Testcontainers for Better Integration Tests w/ Oleg Šelajev

  Рет қаралды 4,783

SpringDeveloper

SpringDeveloper

Күн бұрын

Пікірлер: 7
@kellyfj
@kellyfj Жыл бұрын
TestContainers is absolutely revolutionary given its integration with Java and Spring
@rieckpil
@rieckpil Жыл бұрын
Great talk, Oleg 🚀
@alexandersmirnov4274
@alexandersmirnov4274 Жыл бұрын
can we build native images into testcontainers?
@RajkumarRaigonde
@RajkumarRaigonde Жыл бұрын
How to load initial data into database testcontainer if any initial data needs to test?
@jurgen5557
@jurgen5557 Жыл бұрын
I give you the concrete answer for a Spring boot application: just put a schema.sql or init.sql on your classpath, have Spring use it by setting property: "spring.sql.init.mode=always" => then when your application start up the ApplicationContext with a DatabaseContainer, it makes sure, that the init-scripts are run. If you use another technology, you may have to start the sql-execution in the tests manually - but you can do that, since at test execution time your DB-Container accepts connections when container is properly registered...
@putinscat1208
@putinscat1208 Жыл бұрын
Docker has the ability to run a script file on initialization.. I don't know if Test Containers can tap into that.
@Talaria.School
@Talaria.School Жыл бұрын
👍🏻👌
Introduction to Testcontainers
53:23
SpringDeveloper
Рет қаралды 14 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Spring Office Hours: Episode 18 - Testing with Ted
1:11:47
SpringDeveloper
Рет қаралды 3,6 М.
Guide to "Reactive" for Spring MVC Developers
1:04:27
SpringDeveloper
Рет қаралды 62 М.
Spring Data JDBC: Beyond the Obvious
52:40
SpringDeveloper
Рет қаралды 17 М.
Going Serverless Using the Spring Framework Ecosystem
54:55
SpringDeveloper
Рет қаралды 4,1 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН