Тёмный

Testcontainers - From Zero to Hero. By  

IntelliJ IDEA, a JetBrains IDE
Подписаться 114 тыс.
Просмотров 73 тыс.
50% 1

In this #noslides live-coding session, we will learn about Testcontainers from the ground up. We will get started with Testcontainers to boot up simple database containers for integration testing, use it for local development as a replacement for docker-compose, and cover how it fits into modern CI pipelines.
We highly recommend this session to any developer who wants to make the most out of using Docker containers for reliable and reproducible database, integration, or UI tests.
Speaker: Marco Behler
Marco works as a developer advocate at JetBrains. Based in Munich, Germany, he has over ten years of experience consulting in the Java and Spring ecosystems. He loves to share his knowledge about writing and building awesome software through guides, tweets, books, and talks.

Наука

Опубликовано:

 

2 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 79   
@moeinsamarehshafeei2884
@moeinsamarehshafeei2884 Год назад
I like how it starts with engaging question before self introduction
@vitaliiplagov
@vitaliiplagov 2 года назад
Thanks, JetBrains team for this webinar! It was very good. I like the format of one person as a presenter and a second one is like a student for whom the presenter explains the topic. This format makes the watching more interactive. Hope to see it more in the future!
@marcobehler1395
@marcobehler1395 2 года назад
Glad you liked it, thanks for the feedback!
@pequetreques
@pequetreques Год назад
I utterly agree with Vitali. Such an amazing way of explanation! I loved it! 🫶
@michaelmihov1651
@michaelmihov1651 Год назад
You are wonderful guys. Thanks for making the java world so great!
@abdqadr
@abdqadr 2 года назад
Thank you for this illuminating tutorial. I’m not done watching but I’ve already learnt a lot
@BrianIvie
@BrianIvie 2 года назад
Super informative! Thank you for doing this.
@MaxTelepchuk
@MaxTelepchuk 2 года назад
Love the video! Thank you for a great session!
@abhilpnYT
@abhilpnYT 2 года назад
Loved the class. One of the best co-ordianted and explained classes. Thank You Marco and Gee for this ..
@asterixcode
@asterixcode 11 месяцев назад
Thanks JetBrains for bringing @MarcoCodes. The dude is a freaking great Java/Spring teacher. Thanks Marco!
@MarcoCodes
@MarcoCodes 11 месяцев назад
Thanks @Asterixcode! I actually work for JetBrains btw :)
@DavidePavan
@DavidePavan 2 года назад
Absolutely amazing!
@aravindreddymamidi
@aravindreddymamidi Год назад
Wonderful and thanks for doing this using Spring.
@piotrjazdzyk253
@piotrjazdzyk253 Год назад
Amazing explanation, thanks for sharing this!
@edwinmcc
@edwinmcc 2 года назад
Thank you Marco for the wonderful presentation . . I did a small test and learned this using withInitScripts . . . so that I can initialise the database with some predefined set.
@AnthonyGalati
@AnthonyGalati 11 месяцев назад
Really appreciate this video and JetBrains continuing them.
@maxdancelife
@maxdancelife 2 года назад
thank you Marco for excellent presentation.
@ke30_
@ke30_ Год назад
Again, extremely valuable video, thank you
@ebrahimzidan3875
@ebrahimzidan3875 2 года назад
Literally Amazing tool and amazing tutorial :)) Thanks a lot :))
@marcbeckers5819
@marcbeckers5819 2 года назад
Thank you JetBrains and especially Marco for this very interesting session. I'm very excited and will start working on it tomorrow. This is exactly what I need for my integration testing. Keep up the good work.
@marcobehler1395
@marcobehler1395 2 года назад
Thank you too, you are welcome!
@kpradeep12
@kpradeep12 2 года назад
Good to know about test containers. Nice talk and thank you
@IgorNaumov
@IgorNaumov 2 года назад
I needed it right now and youtube proposed this video. This is absolutely helpful :)
@intellijidea
@intellijidea 2 года назад
Glad it was helpful!
@payaldas9455
@payaldas9455 2 года назад
Thanks for this amazing content .
@ayuobmousa6589
@ayuobmousa6589 Год назад
oh my how i miss this ? I am in LOVE 😍
@flyLeonardofly
@flyLeonardofly 2 года назад
Thanks for that video! At some point I found that my internal wtfs per minute were too high for giving testcontainers a try. Too much lurking config hell. But the video worked that out for me and that's great, thank you!
@SunilSingh1994
@SunilSingh1994 2 года назад
Thanks for this very informative session
@swethavarnaau7619
@swethavarnaau7619 2 года назад
Amazing content
@MrMuntasir66
@MrMuntasir66 Год назад
man this is simply wow
@cocoychang76
@cocoychang76 2 года назад
thanks that was awesome
@ashwaniahuja
@ashwaniahuja 2 года назад
great learning video
@ayuobmousa6589
@ayuobmousa6589 2 года назад
thnx that was awesome.
@cccc2740
@cccc2740 Год назад
Thanks a lot. And it means we can do away with lots of mockings we do...thats really great.
@marekbugiel6893
@marekbugiel6893 2 года назад
Many thanks!
@ihor_biedin
@ihor_biedin 2 года назад
This video is a priceless! ❤️❤️❤️
@marcobehler1395
@marcobehler1395 2 года назад
:) Thanks!
@vineethjoyson
@vineethjoyson 2 года назад
I just used testcontainer last week for both kafka and DB. And now google gave this video to me as I searched for that in google.
@kilianagboton4229
@kilianagboton4229 9 месяцев назад
Thank you so much.
@TheGuroguro12
@TheGuroguro12 Год назад
this is very cool
@a.h.m.robiulhasan8975
@a.h.m.robiulhasan8975 2 года назад
Thank you for the tutorial. I was trying to use testcontainers for HBase. I am able to start HBase container but my client cannot connect to HBase. Is there any example that I can use?
@StefanSchade721229
@StefanSchade721229 2 года назад
Great
@bartdart3315
@bartdart3315 2 года назад
Very good presentation. Biggest gap for me was setting up the db code and data...if TCs have a way of loading the latter from the project it would be really nice to know.
@marcobehler1395
@marcobehler1395 2 года назад
As mentioned in another comment here, you can either use Spring Boot's schema.sql/data.sql capabilities, or a tool like Flyway/Liquibase.
@sebastijanp3
@sebastijanp3 Год назад
Gee was talking about ExtendWith annotation... So what is the class that you can use with extend with? Is there are docs reference to it or a blog about it?
@anandjaisy
@anandjaisy 2 года назад
Thanks for the webinar it was really helpful. @Trisha you were talking about the blog on abstract class extend, please let me know if you have written that blog.
@lifeTechnicolorGuy
@lifeTechnicolorGuy 2 года назад
have you found it?
@anandjaisy
@anandjaisy 2 года назад
@@lifeTechnicolorGuy No waiting
@marcobehler1395
@marcobehler1395 2 года назад
It'll take some more time for Trisha to get this out.
@fredgarcia8407
@fredgarcia8407 2 года назад
would test containers work on all CI pipelines or only those specified in the testcontainers documentation?
@USONOFAV
@USONOFAV 2 года назад
How bout adding a Runtime shutdown hook and stop the container there.
@tejas7041
@tejas7041 2 года назад
This was very informative and helpful but I got one question - How do we skip executing init script on reusable container? Like while using reusable container with init script, it runs the script every time the test start even though same DB is being reused. In init script I have create and insert statements so every time I run the test, it tries to execute the sql statements and fails with table already exists.
@marcobehler1395
@marcobehler1395 2 года назад
The scripts, i.e. schema.sql etc. have nothing to do with TestContainers, i.e. it's a Spring Boot specific database mechanism. So, either you rewrite your SQL statements like "create table if not exists" or use a tool like Flyway or Liquibase which will essentially solve this problem for you.
@tejas7041
@tejas7041 2 года назад
@@marcobehler1395 got it, thank you!
@pc9999able
@pc9999able 2 года назад
i can not use @DynamicPropertySource because i am still using spring 2.1.4, how can i connect spring to randomly created port container?
@anandjaisy
@anandjaisy 2 года назад
Can we also have a session for end-end testing for microservices with the test container?
@marcobehler1395
@marcobehler1395 2 года назад
Can you give a more specific example? How/where do you store your session state, what is your exact use case?
@anandjaisy
@anandjaisy 2 года назад
@@marcobehler1395 I was taking about another webinar on end to end testing with test container. In this webinar we had integration testing, can you please host another webinar to perform end-end testing among microservices
@lifeTechnicolorGuy
@lifeTechnicolorGuy 2 года назад
Have anyone found @Trisha post about not extending the abstract class?
@clementboret5305
@clementboret5305 2 года назад
also look for it....
@marcobehler1395
@marcobehler1395 2 года назад
It'll take some more time for Trisha to get this out.
@alvaroarenasu2
@alvaroarenasu2 2 года назад
@@marcobehler1395 Any reference to the doc that Trisha read about it?
@mejrihoussem1202
@mejrihoussem1202 2 года назад
Any updates about this trick?
@stackunderflow5951
@stackunderflow5951 2 года назад
Also curious about it
@draganmijatovic8503
@draganmijatovic8503 2 года назад
Can you put repo url in description 😇
@hendisantika
@hendisantika Год назад
How do we mix testcontainers, mysql & flyway?
@Greatfulone
@Greatfulone 2 года назад
I am a beginner developer and would love to see a list of how test containers adds to just configuring a DB image in Docker. Is it the JUNIT integration?
@marcobehler1395
@marcobehler1395 2 года назад
I'm not sure I quite understood the question. Could you post it again?
@Greatfulone
@Greatfulone 2 года назад
@@marcobehler1395 Thank you so much for the reply. I thought about this question and I believe it stems from me not having done any testing against a database instance yet. Please disregard. I meant to remove it. You did mention some things in your talk, and I believe I just need to use it. I will reach out if I have any questions. Thank you so much. It was a very informative session.
@randoanon
@randoanon Год назад
Thanks a lot for this session. I am currently stuck with a task that involves TestContainers and Karate. I was lost on where to start but now I feel confident to take it up.
@AmNotLegend
@AmNotLegend 2 года назад
How the mechnism that makes the test wait until testContainer booting up? I didn't get it. is it automated?
@intellijidea
@intellijidea Год назад
It's a polling mechanism that TestContainers implemented under the hood.
@cccc2740
@cccc2740 Год назад
Hey, I dont get it. How is test working without any test data populated?
@AmNotLegend
@AmNotLegend 2 года назад
you forgot the github link
@66tens41
@66tens41 Год назад
Good video! But trisha is very irrelevant for this video
@java_couch
@java_couch Год назад
testcontainers is rly bullshit, try to test ftp service and you will get what i am talking about....
@toomaspark862
@toomaspark862 Год назад
@AfterAll container.stop ??
@kuldipbajwa_
@kuldipbajwa_ 2 года назад
thanks for this.... keep getting ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper - Table 'test.STUDENTS' doesn't exist
Далее
Mastering Testcontainers by Oleg Šelajev
52:24
Просмотров 8 тыс.
Docker in IntelliJ IDEA
17:36
Просмотров 136 тыс.
The cleanest way to use Docker for testing in .NET
13:36
Introduction to Testcontainers
53:23
Просмотров 13 тыс.
Testcontainers и Spring Boot 3.1
19:47
Просмотров 7 тыс.
Best mobile of all time💥🗿 [Troll Face]
0:24
Просмотров 1,7 млн