unit tests are nice but integration tests are life saver, always have them on side
unit tests are nice but integration tests are life saver, always have them on side
📖 Article: "Test Containers and Clean Architecture"
Key Highlights:
✅ Exploring Clean Architecture principles for robust software.
✅ A practical guide to leveraging Test Containers for testing.
✅ Real-world examples and case studies.
✅ The future of software development trends.
Read the full article here: https://dev.to/ticinoswcraft/tests-infrastructure-1gko
Im Mai ist mit Spring Boot 3.1.0 das nächste Minor Release von Spring Boot 3 erschienen. In diesem Artikel wollen wir uns anschauen, wie die neue Unterstützung von Testcontainers und Docker Compose uns bei Tests und der lokalen Entwicklung unterstützen kann.
@hovfefe @davidfowl We are trying a different approach to testing (treating the API as a black box and testing the outside only) so spent most of my time fighting the test framework. That said, the #testcontainer implementation itself was good other than having to do a StartAsync().Wait(); for each container in the constructor of the custom WebApplicationFactory, so I can get the mapped ports to use in ConfigureWebHost()
I'm sure my implementation is not optimal by a long way but it works.
[New Blog Post] Using Testcontainers in Spring Boot Tests combined with JUnit5 for Selenium Tests
https://blog.sandra-parsick.de/2022/11/21/using-testcontainers-selenium-in-spring-boot-tests/