Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/47degrees/docker-testkit-munit
MUnit integration for https://github.com/whisklabs/docker-it-scala
https://github.com/47degrees/docker-testkit-munit
scala
Last synced: about 1 month ago
JSON representation
MUnit integration for https://github.com/whisklabs/docker-it-scala
- Host: GitHub
- URL: https://github.com/47degrees/docker-testkit-munit
- Owner: 47degrees
- License: apache-2.0
- Created: 2020-04-23T07:05:39.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-29T05:12:39.000Z (almost 2 years ago)
- Last Synced: 2024-05-20T22:27:50.568Z (8 months ago)
- Topics: scala
- Language: Scala
- Homepage:
- Size: 205 KB
- Stars: 9
- Watchers: 40
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## docker-testkit-munit
This is the [MUnit](https://scalameta.org/munit) integration for
[docker-testkit](https://github.com/whisklabs/docker-it-scala/).### Usage
To leverage this in your SBT project, using SBT
[integration test settings](https://www.scala-sbt.org/1.x/docs/Testing.html#Integration+Tests):```scala
lazy val root = (project in file("."))
.configs(IntegrationTest)
.settings(
Defaults.itSettings,
testFrameworks += new TestFramework("munit.Framework"),
libraryDependencies += Seq(
"com.scalameta" %% "munit" % "0.7.3" % "it,test"
"com.whisk" %% "docker-testkit-impl-spotify" % "0.9.9" % "it",
"com.47deg" %% "docker-testkit-munit" % "0.1.0" % "it"
)
)
```In your integration test:
```scala
import docker.munit.DockerTestKit
import com.whisk.docker._
import com.whisk.docker.impl.spotify.DockerKitSpotify
import munit.FunSuitetrait Nginx extends DockerTestKit with DockerKitSpotify { self: FunSuite =>
override def dockerContainers = DockerContainer("nginx:1.17.10") :: dockerContainers
}class IntegrationText extends FunSuite with Nginx {
test("something related to nginx") {
assert(...)
}
}
```For further documentation, refer to
[docker-testkit](https://github.com/whisklabs/docker-it-scala/).