testcontainers / testcontainers-scala

Docker containers for testing in scala

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

when to use `ForAllTestContainer` over `TestContainersForAll`

dzanot opened this issue · comments

I see in the docs it's recommended to use the scalatest namespaced TestContainersForAll.
I didn't realize this existed and my team universally uses ForAllTestContainer.

Is ForAllTestContainer even meant to be used? I looked at the source differences and besides the multiple containers part the code is very similar.

I had some nondeterministic timing issues with containers failing on startup that was fixed by a move to munit.TestContainersForAll but now I'm wondering if I could have gotten away with just using scalatest.TestContainersForAll