Registry / testing / testcontainers-scala-core-2-13

testcontainers-scala-core-2-13

JSON →
library0.44.1javamavenunverified

Scala wrapper for Testcontainers, providing lightweight, disposable containers for integration testing.

<dependency> <groupId>com.dimafeng</groupId> <artifactId>testcontainers-scala-core_2.13</artifactId> <version>0.44.1</version> </dependency>
INSTALL
IMPORT
SIG · TESTCONTAINERS-SCA
T
testcontainers-scala-core-2-13
testingjavav0.44.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MySQLContainer
com.dimafeng.testcontainers.MySQLContainer

Starts a MySQL container and prints its JDBC URL.

import com.dimafeng.testcontainers.MySQLContainer import org.testcontainers.utility.DockerImageName object Quickstart extends App { val container = MySQLContainer(DockerImageName.parse("mysql:8.0")) container.start() println(s"JDBC URL: ${container.jdbcUrl}") container.stop() }
Debug
Known issues
breakingThis artifact is for Scala 2.13; use the appropriate version for your Scala version.
fix
Use testcontainers-scala-core_2.12 or testcontainers-scala-core_3 for other Scala versions.
affects: all
Upgrade
Version history
0.44.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
testcontainers-scala-core-2-13 — mvn dependency:get testcontainers-scala-core-2-13 · libregistry