Back to Browse

Adopting Testcontainers for local development

1.8K views
Oct 31, 2022
57:20

Local development and testing are significant for engineers who wish to ship confidently onto production environments. Test-driven development (TDD) has been adopted as an essential practice to enforce that and ensure that every code change is validated locally and on CI. This is where we arrive at the Testcontainers libraries that support your tests, providing lightweight, ephemeral instances of common databases, message brokers, web browsers, or anything else that can run in a Docker container. With Testcontainers, available in different popular languages: Java, Go, .NET, JavaScript/Typescript, and Python, you can replicate the production environment on your local machine and test everything (including AWS APIs powered by LocalStack)! Testcontainers ensure that the data access layer, user interface, and application are tested well at each step. In this session, we have looked at Testcontainers and how to adopt them to develop our applications locally and run our integration tests while using LocalStack to provision cloud resources inside a Docker container before pushing your application to production! In the end, we have also discussed how LocalStack and the Java version of Testcontainers play nicely with each other and wind up with updates about the all-new LocalStack release! Social and Community: • GitHub: https://github.com/localstack • Twitter: https://twitter.com/_localstack • LinkedIn: https://www.linkedin.com/company/localstack-cloud • Blog: https://localstack.cloud/blog/ Would you like to speak at a future meetup and present your use case or experience with LocalStack? Propose a talk by sending a mail at [email protected]. Chapters: 0:00 Intro 1:50 Introducing the Speaker 2:44 Why Testcontainers? 7:56 How to test Cloud applications locally? 8:39 Introduction to Testcontainers 12:09 Getting started with Testcontainers Java 17:03 Show me the code 39:26 Using Testcontainers with other languages 41:40 Introducting Testcontainers Cloud 50:45 LocalStack updates 56:38 Conclusion

Download

1 formats

Video Formats

360pmp487.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Adopting Testcontainers for local development | NatokHD