Control Docker containers from your test lifecycle for Clojure integration tests.
Find a file
2020-06-04 20:07:13 +02:00
.circleci #4 - Set Up Boot 2020-06-04 20:05:41 +02:00
doc Initial Commit containing the App Template 2020-06-04 10:44:03 +02:00
resources #4 - Included resources folder 2020-06-04 20:07:13 +02:00
src/clj_test_containers #1 - Streamlined API some more 2020-06-04 13:04:30 +02:00
test/clj_test_containers #1 - Streamlined API some more 2020-06-04 13:04:30 +02:00
.gitignore Initial Commit containing the App Template 2020-06-04 10:44:03 +02:00
build.boot Initialized Dependencies and readme 2020-06-04 10:58:10 +02:00
CHANGELOG.md Initial Commit containing the App Template 2020-06-04 10:44:03 +02:00
LICENSE Initial Commit containing the App Template 2020-06-04 10:44:03 +02:00
README.md #1 - Streamlined API some more 2020-06-04 13:04:30 +02:00

clj-test-containers

What it is

This application is supposed to be a lightweight wrapper around the Testcontainers Java library.

What it isn't

This library does not provide tools to include testcontainers in your testing lifecycle. As there are many different test tools with different approaches to testing in the clojure world, handling the lifecycle is up to you.

Usage

(require '[clj-test-containers.core :as tc])

(def container (tc/create {:image-name "postgres:12.1" 
                          :exposed-ports [5432] 
                          :env-vars {"POSTGRES_PASSWORD" "verysecret"}}))

(tc/start postgres)

(tc/stop postgres)

License

Copyright © 2020 Tim Zöller

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.