Add Testcontainers for integration testing #4708
ilopezluna
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
Add Testcontainers library to spin up required containers for integration testing.
The library can significantly improve the testing workflows by allowing to configure and launch test environments that mimic the real dependencies without having to use any additional script or docker-compose file.
Motivation
Ensuring that the integration tests accurately reflect real-world usage scenarios is paramount to delivering robust and reliable software. However, achieving this can often be challenging due to the complexity of our application's environment and dependencies. Testcontainers offers a scalable and efficient solution to these challenges by enabling us to:
Proposal (If applicable)
Hi from the Testcontainers community! 👋
I'm one of the maintainers of the OSS Testcontainers library (which is nowadays supported by Docker) and I'd like to contribute a small improvement regarding the current integration test suite.
I have created this branch to show how Testcontainers can be used to spin up a Redis container without need to use any additional script file, right from within the test code.
I leave here the link to our docs site in case you are interested in understanding more about our proposition to run integration tests with real dependencies: https://www.testcontainers.org/
Please let me know if you want to know more about the project, I'm open to any collaboration.
Beta Was this translation helpful? Give feedback.
All reactions