testcontainers / testcontainers/testcontainers-scala
Make TestContainersSuite public
Open
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 668
- Forks
- 136
- PR merge metrics
- No merged PRs in 30d
Description
It would be nice to be able to use this in our own mixins.
e.g. have some common set-up defined in a trait
trait PostgresSupport { self: Suite with TestContainersSuite =>
val container = ???
}
And then we can decide if you want to use ForEachTestContainer or ForAllTestContainer depending on the actual tests.
class MyRepoSpec extends AnyFlatSpec with ForEachTestContainer with PostgresSupport
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the TestContainersSuite declaration and checking how ForEachTestContainer and ForAllTestContainer use it. Make the suite publicly usable by external mixins, then verify that the PostgresSupport-style composition shown in the issue can compile and work with both container lifecycles.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100