testcontainers-scala
testcontainers-scala copied to clipboard
Docker containers for testing in scala
Hi, we're getting this error ```[error] Test suite com.itv.octopus.datasource.bundles.kafka.BundleClientSpec failed with java.lang.NoClassDefFoundError: munit/Test [error] This may be due to the ClassLoaderLayeringStrategy (ScalaLibrary) used by your task. [error] To improve performance...
The container is : ```scala override def container: MSSQLServerContainer = new MSSQLServerContainer( dockerImageName = DockerImageName.parse("mcr.microsoft.com/mssql/server:2022-latest") ) ``` And in the `afterStart()` hook: ```scala super.afterStart() logger.info(s"driver name: ${container.driverClassName};;;;started: ${container.container.isHealthy}") Class.forName(container.driverClassName) val...
This appears to be the case since `0.40.15` when switching to MUnit 1.0 milestones. Here's a simple example: ```scala import cats.effect.{IO, Resource} import com.dimafeng.testcontainers.munit.fixtures.TestContainersFixtures import munit.CatsEffectSuite import munit.catseffect.IOFixture class MinimalSuite...
Currently I have a batch of Suites that inherit from `TestContainersForAll` through a common custom trait. I want them all to use the same container but cannot seem to figure...
I've made a lot of attempts.. I have two runners: 1. ``` concurrent = 1 check_interval = 0 shutdown_timeout = 0 [session_server] session_timeout = 1800 [[runners]] name = "Docker in...
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 ```scala trait PostgresSupport { self: Suite with...
Hi, I'm currently using following maven dependencies in my project: ``` com.dimafeng testcontainers-scala_2.12 0.40.12 test com.dimafeng testcontainers-scala-dynalite_2.12 0.40.12 test com.dimafeng testcontainers-scala-localstack_2.12 0.40.12 test ``` I have some code where I...
I am a newcomer to this project, I find it very useful, thanks for working on it. When reading the documentation, I was puzzled at first to first read code...
I'm having a Scala project where in the test folder, I have the resources folder and in that folder I have the docker-compose-mqtt.yaml file that is supposed to start a...
## About this PR 📦 Updates [org.xerial.sbt:sbt-sonatype](https://github.com/xerial/sbt-sonatype) from `2.3` to `3.11.0` 📜 [GitHub Release Notes](https://github.com/xerial/sbt-sonatype/releases/tag/v3.11.0) - [Release Notes](https://github.com/xerial/sbt-sonatype/blob/master/ReleaseNotes.md) ## Usage ✅ **Please merge!** I'll automatically update this PR to resolve...