testkit

munit integration for https://github.com/whisklabs/docker-it-scala

License

License

Categories

Categories

Docker Container Virtualization Tools
GroupId

GroupId

com.47deg
ArtifactId

ArtifactId

docker-testkit-munit_2.13
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

testkit
munit integration for https://github.com/whisklabs/docker-it-scala
Project URL

Project URL

https://github.com/47degrees/docker-testkit-munit
Project Organization

Project Organization

47 Degrees
Source Code Management

Source Code Management

https://github.com/47degrees/docker-testkit-munit

Download docker-testkit-munit_2.13

How to add to project

<!-- https://jarcasting.com/artifacts/com.47deg/docker-testkit-munit_2.13/ -->
<dependency>
    <groupId>com.47deg</groupId>
    <artifactId>docker-testkit-munit_2.13</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.47deg/docker-testkit-munit_2.13/
implementation 'com.47deg:docker-testkit-munit_2.13:0.1.0'
// https://jarcasting.com/artifacts/com.47deg/docker-testkit-munit_2.13/
implementation ("com.47deg:docker-testkit-munit_2.13:0.1.0")
'com.47deg:docker-testkit-munit_2.13:jar:0.1.0'
<dependency org="com.47deg" name="docker-testkit-munit_2.13" rev="0.1.0">
  <artifact name="docker-testkit-munit_2.13" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.47deg', module='docker-testkit-munit_2.13', version='0.1.0')
)
libraryDependencies += "com.47deg" % "docker-testkit-munit_2.13" % "0.1.0"
[com.47deg/docker-testkit-munit_2.13 "0.1.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.13.2
org.scalameta : munit_2.13 jar 0.7.3
com.whisk : docker-testkit-core_2.13 jar 0.9.9

test (5)

Group / Artifact Type Version
com.whisk : docker-testkit-impl-spotify_2.13 jar 0.9.9
com.whisk : docker-testkit-impl-docker-java_2.13 jar 0.9.9
com.whisk : docker-testkit-samples_2.13 jar 0.9.9
ch.qos.logback : logback-classic jar 1.2.3
org.postgresql : postgresql jar 9.4.1212

Project Modules

There are no modules declared in this project.

docker-testkit-munit

This is the MUnit integration for docker-testkit.

Usage

To leverage this in your SBT project, using SBT integration test settings:

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:

import docker.munit.DockerTestKit
import com.whisk.docker._
import com.whisk.docker.impl.spotify.DockerKitSpotify
import munit.FunSuite

trait 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.

com.47deg

47 Degrees Open Source

47 Degrees Open Source Initiatives

Versions

Version
0.1.0