I have a few containers that running using TestConatiners and I have a few services that I want to test. for each service, I have a separate file (test suite) and inside I have tests. I have a class that I defined the logic of containers - beforeAll I start the containers, and afterAll I stop the all containers, and all test suits files extend this class. The problem starts during switching test suits, I want to keep the containers running, instead of stopping and rerunning for each test suite which causes to slow extremely the testing pipeline.
this is a good example of what I mean - https://callistaenterprise.se/blogg/teknik/2020/10/09/speed-up-your-testcontainers-tests/
but the issue is that we don't have static in Scala
Any suggestion on how can I do that using testconatiners-scala ?