Control Docker containers from your test lifecycle for Clojure integration tests.
| .circleci | ||
| doc | ||
| resources | ||
| src/clj_test_containers | ||
| test/clj_test_containers | ||
| .gitignore | ||
| build.boot | ||
| CHANGELOG.md | ||
| LICENSE | ||
| README.md | ||
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.