outofcoffee/testcontainers-java


TestContainers is a Java 8 library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.outofcoffee:testcontainers-java:0.9.6'
	}
	dependencies {
		implementation("com.github.outofcoffee:testcontainers-java:0.9.6")
	}
	<dependency>
	    <groupId>com.github.outofcoffee</groupId>
	    <artifactId>testcontainers-java</artifactId>
	    <version>0.9.6</version>
	</dependency>

                            
    libraryDependencies += "com.github.outofcoffee" % "testcontainers-java" % "0.9.6"
        
        

                            
    :dependencies [[com.github.outofcoffee/testcontainers-java "0.9.6"]]
        
        

Readme


Testcontainers

Testcontainers is a Java 8 library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.

Build Status Download

Testcontainers logo

Read the documentation here

License

See LICENSE.

Copyright

Copyright (c) 2015 - 2020 Richard North and other authors.

MS SQL Server module is (c) 2017 - 2020 G DATA Software AG and other authors.

Hashicorp Vault module is (c) 2017 - 2020 Capital One Services, LLC and other authors.

See contributors for all contributors.