Switch from bat-test to kaocha (#22)

This commit is contained in:
Rob Hanlon 2020-08-07 11:22:45 -07:00 committed by GitHub
parent 1e24824916
commit cc77c4233d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 7 deletions

View file

@ -36,7 +36,7 @@ jobs:
key: v1-dependencies-{{ checksum "project.clj" }}
# run tests!
- run: lein bat-test cloverage
- run: lein test
- store_test_results:
path: target

View file

@ -1,14 +1,20 @@
(defproject clj-test-containers "0.2.0-SNAPSHOT"
:description "A lightweight, unofficial wrapper around the Testcontainers Java library"
:url "https://github.com/javahippie/clj-test-containers"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.10.1"]
[org.testcontainers/testcontainers "1.14.3"]]
:plugins [[metosin/bat-test "0.4.4"]]
:bat-test {:report [:pretty {:type :junit
:output-to "target/junit.xml"}]}
:profiles {:dev {:dependencies [[org.testcontainers/postgresql "1.14.3"]]}}
:aliases {"test" ["run" "-m" "kaocha.runner"]}
:profiles {:dev {:dependencies [[org.testcontainers/postgresql "1.14.3"]
[lambdaisland/kaocha-cloverage "1.0-45"]
[lambdaisland/kaocha "1.0.641"]
[lambdaisland/kaocha-junit-xml "0.0.76"]]}}
:target-path "target/%s")

View file

@ -1,10 +1,10 @@
(ns clj-test-containers.core
(:require [clojure.java.io :as io])
(:require [clojure.spec.alpha :as s])
(:import [org.testcontainers.containers GenericContainer]
[org.testcontainers.utility MountableFile]
[org.testcontainers.containers BindMode Network]
[org.testcontainers.images.builder ImageFromDockerfile]
[java.nio.file Path Paths]))
[java.nio.file Paths]))
(defn- resolve-bind-mode
[bind-mode]

5
tests.edn Normal file
View file

@ -0,0 +1,5 @@
#kaocha/v1
{:plugins [:kaocha.plugin/junit-xml
:kaocha.plugin/cloverage
:kaocha.plugin.alpha/spec-test-check]
:kaocha.plugin.junit-xml/target-file "target/junit.xml"}