testcontainers / testcontainers/testcontainers-scala

Make TestContainersSuite public

Open
#243 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.