How to limit the number of parallel containers #1017
-
Hi all, one question: Is there a way to limit the number of parallel containers? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This depends on the test framework you are using, they use different ways to configure it (there is nothing built-in in Testcontainers). If you need the same service again and again, it is recommended to create the container once (singleton) and share it across the tests. This will make your tests run faster and use fewer resources. |
Beta Was this translation helpful? Give feedback.
This depends on the test framework you are using, they use different ways to configure it (there is nothing built-in in Testcontainers). If you need the same service again and again, it is recommended to create the container once (singleton) and share it across the tests. This will make your tests run faster and use fewer resources.