Skip to content

Commit

Permalink
Separate Deps Test Aliases
Browse files Browse the repository at this point in the history
Starting with version 1.12.3 Cursive does start the REPL in a way that
is incompatible with the main-opts from Kaocha. So separating the
aliases for :test and :kaocha was necessary. Furthermore I also removed
the :test parts of :test-coverage which removed duplication.
  • Loading branch information
alexanderkiel committed Apr 28, 2022
1 parent e5e56dc commit 90242b8
Show file tree
Hide file tree
Showing 65 changed files with 299 additions and 412 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ lint-root:
lint: $(MODULES) lint-root

test-root:
clojure -M:test --profile :ci
clojure -M:test:kaocha --profile :ci

test: $(MODULES) test-root

Expand Down
4 changes: 2 additions & 2 deletions modules/anomaly/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ lint:
clj-kondo --lint src test deps.edn

test:
clojure -M:test --profile :ci
clojure -M:test:kaocha --profile :ci

test-coverage:
clojure -M:test-coverage
clojure -M:test:coverage

clean:
rm -rf .clj-kondo/.cache .cpcache target
Expand Down
17 changes: 7 additions & 10 deletions modules/anomaly/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,18 @@

:extra-deps
{blaze/test-util
{:local/root "../test-util"}
{:local/root "../test-util"}}}

lambdaisland/kaocha
:kaocha
{:extra-deps
{lambdaisland/kaocha
{:mvn/version "1.65.1029"}}

:main-opts ["-m" "kaocha.runner"]}

:test-coverage
{:extra-paths ["test"]

:extra-deps
{blaze/test-util
{:local/root "../test-util"}

cloverage/cloverage
:coverage
{:extra-deps
{cloverage/cloverage
{:mvn/version "1.2.3"}}

:main-opts ["-m" "cloverage.coverage" "--codecov" "-p" "src" "-s" "test"]}}}
4 changes: 2 additions & 2 deletions modules/async/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ lint:
clj-kondo --lint src test deps.edn

test:
clojure -M:test --profile :ci
clojure -M:test:kaocha --profile :ci

test-coverage:
clojure -M:test-coverage
clojure -M:test:coverage

clean:
rm -rf .clj-kondo/.cache .cpcache target
Expand Down
17 changes: 7 additions & 10 deletions modules/async/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,18 @@

:extra-deps
{blaze/test-util
{:local/root "../test-util"}
{:local/root "../test-util"}}}

lambdaisland/kaocha
:kaocha
{:extra-deps
{lambdaisland/kaocha
{:mvn/version "1.65.1029"}}

:main-opts ["-m" "kaocha.runner"]}

:test-coverage
{:extra-paths ["test"]

:extra-deps
{blaze/test-util
{:local/root "../test-util"}

cloverage/cloverage
:coverage
{:extra-deps
{cloverage/cloverage
{:mvn/version "1.2.3"}}

:main-opts ["-m" "cloverage.coverage" "--codecov" "-p" "src" "-s" "test"]}}}
2 changes: 1 addition & 1 deletion modules/byte-buffer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lint:
clj-kondo --lint src test deps.edn

test:
clojure -M:test --profile :ci
clojure -M:test:kaocha --profile :ci

test-coverage:
true
Expand Down
6 changes: 4 additions & 2 deletions modules/byte-buffer/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@

:extra-deps
{blaze/test-util
{:local/root "../test-util"}
{:local/root "../test-util"}}}

lambdaisland/kaocha
:kaocha
{:extra-deps
{lambdaisland/kaocha
{:mvn/version "1.65.1029"}}

:main-opts ["-m" "kaocha.runner"]}}}
4 changes: 2 additions & 2 deletions modules/cassandra/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ lint:
clj-kondo --lint src test deps.edn

test:
clojure -M:test --profile :ci
clojure -M:test:kaocha --profile :ci

test-coverage:
clojure -M:test-coverage
clojure -M:test:coverage

clean:
rm -rf .clj-kondo/.cache .cpcache target
Expand Down
26 changes: 10 additions & 16 deletions modules/cassandra/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,20 @@
{blaze/test-util
{:local/root "../test-util"}

lambdaisland/kaocha
{:mvn/version "1.65.1029"}

org.clojars.akiel/iota
{:mvn/version "0.1"}}

:main-opts ["-m" "kaocha.runner"]}

:test-coverage
{:extra-paths ["test"]
{:mvn/version "0.1"}}}

:extra-deps
{blaze/test-util
{:local/root "../test-util"}
:kaocha
{:extra-deps
{lambdaisland/kaocha
{:mvn/version "1.65.1029"}}

cloverage/cloverage
{:mvn/version "1.2.3"}
:main-opts ["-m" "kaocha.runner"]}

org.clojars.akiel/iota
{:mvn/version "0.1"}}
:coverage
{:extra-deps
{cloverage/cloverage
{:mvn/version "1.2.3"}}

:main-opts ["-m" "cloverage.coverage" "--codecov" "-p" "src" "-s" "test"
"-e" ".+spec"]}}}
4 changes: 2 additions & 2 deletions modules/coll/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ lint:
clj-kondo --lint src test deps.edn

test:
clojure -M:test --profile :ci
clojure -M:test:kaocha --profile :ci

test-coverage:
clojure -M:test-coverage
clojure -M:test:coverage

clean:
rm -rf .clj-kondo/.cache .cpcache target
Expand Down
11 changes: 5 additions & 6 deletions modules/coll/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@

:aliases
{:test
{:extra-paths ["test"]
{:extra-paths ["test"]}

:extra-deps
:kaocha
{:extra-deps
{lambdaisland/kaocha
{:mvn/version "1.65.1029"}}

:main-opts ["-m" "kaocha.runner"]}

:test-coverage
{:extra-paths ["test"]

:extra-deps
:coverage
{:extra-deps
{cloverage/cloverage
{:mvn/version "1.2.3"}}

Expand Down
4 changes: 2 additions & 2 deletions modules/cql/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ cql-test:
sed -i.bak '277d' cql-test/CqlArithmeticFunctionsTest.xml

test: cql-test
clojure -M:test --profile :ci
clojure -M:test:kaocha --profile :ci

test-coverage: cql-test
clojure -M:test-coverage
clojure -M:test:coverage

clean:
rm -rf .clj-kondo/.cache .cpcache cql-test target
Expand Down
26 changes: 10 additions & 16 deletions modules/cql/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,20 @@
{blaze/db-stub
{:local/root "../db-stub"}

lambdaisland/kaocha
{:mvn/version "1.65.1029"}

org.clojure/data.xml
{:mvn/version "0.2.0-alpha6"}}

:main-opts ["-m" "kaocha.runner"]}

:test-coverage
{:extra-paths ["test"]
{:mvn/version "0.2.0-alpha6"}}}

:extra-deps
{blaze/db-stub
{:local/root "../db-stub"}
:kaocha
{:extra-deps
{lambdaisland/kaocha
{:mvn/version "1.65.1029"}}

cloverage/cloverage
{:mvn/version "1.2.3"}
:main-opts ["-m" "kaocha.runner"]}

org.clojure/data.xml
{:mvn/version "0.2.0-alpha6"}}
:coverage
{:extra-deps
{cloverage/cloverage
{:mvn/version "1.2.3"}}

:main-opts ["-m" "cloverage.coverage" "--codecov" "-p" "src" "-s" "test"
"-e" ".*spec$"]}}}
4 changes: 2 additions & 2 deletions modules/db-resource-store-cassandra/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ lint:
clj-kondo --lint src test deps.edn

test:
clojure -M:test --profile :ci
clojure -M:test:kaocha --profile :ci

test-coverage:
clojure -M:test-coverage
clojure -M:test:coverage

clean:
rm -rf .clj-kondo/.cache .cpcache target
Expand Down
17 changes: 7 additions & 10 deletions modules/db-resource-store-cassandra/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,18 @@

:extra-deps
{blaze/test-util
{:local/root "../test-util"}
{:local/root "../test-util"}}}

lambdaisland/kaocha
:kaocha
{:extra-deps
{lambdaisland/kaocha
{:mvn/version "1.65.1029"}}

:main-opts ["-m" "kaocha.runner"]}

:test-coverage
{:extra-paths ["test"]

:extra-deps
{blaze/test-util
{:local/root "../test-util"}

cloverage/cloverage
:coverage
{:extra-deps
{cloverage/cloverage
{:mvn/version "1.2.3"}}

:main-opts ["-m" "cloverage.coverage" "--codecov" "-p" "src" "-s" "test"]}}}
4 changes: 2 additions & 2 deletions modules/db-resource-store/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ lint:
clj-kondo --lint src test deps.edn

test:
clojure -M:test --profile :ci
clojure -M:test:kaocha --profile :ci

test-coverage:
clojure -M:test-coverage
clojure -M:test:coverage

clean:
rm -rf .clj-kondo/.cache .cpcache target
Expand Down
26 changes: 10 additions & 16 deletions modules/db-resource-store/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,20 @@
criterium/criterium
{:mvn/version "0.4.6"}

lambdaisland/kaocha
{:mvn/version "1.65.1029"}

mvxcvi/clj-cbor
{:mvn/version "1.1.0"}}

:main-opts ["-m" "kaocha.runner"]}

:test-coverage
{:extra-paths ["test"]
{:mvn/version "1.1.0"}}}

:extra-deps
{blaze/test-util
{:local/root "../test-util"}
:kaocha
{:extra-deps
{lambdaisland/kaocha
{:mvn/version "1.65.1029"}}

cloverage/cloverage
{:mvn/version "1.2.3"}
:main-opts ["-m" "kaocha.runner"]}

mvxcvi/clj-cbor
{:mvn/version "1.1.0"}}
:coverage
{:extra-deps
{cloverage/cloverage
{:mvn/version "1.2.3"}}

:main-opts ["-m" "cloverage.coverage" "--codecov" "-p" "src" "-s" "test"
"-e" ".*-spec$"]}}}
4 changes: 2 additions & 2 deletions modules/db-tx-log-kafka/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ lint:
clj-kondo --lint src test deps.edn

test:
clojure -M:test --profile :ci
clojure -M:test:kaocha --profile :ci

test-coverage:
clojure -M:test-coverage
clojure -M:test:coverage

clean:
rm -rf .clj-kondo/.cache .cpcache target
Expand Down
17 changes: 7 additions & 10 deletions modules/db-tx-log-kafka/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,18 @@

:extra-deps
{blaze/test-util
{:local/root "../test-util"}
{:local/root "../test-util"}}}

lambdaisland/kaocha
:kaocha
{:extra-deps
{lambdaisland/kaocha
{:mvn/version "1.65.1029"}}

:main-opts ["-m" "kaocha.runner"]}

:test-coverage
{:extra-paths ["test"]

:extra-deps
{blaze/test-util
{:local/root "../test-util"}

cloverage/cloverage
:coverage
{:extra-deps
{cloverage/cloverage
{:mvn/version "1.2.3"}}

:main-opts ["-m" "cloverage.coverage" "--codecov" "-p" "src" "-s" "test"]}}}
4 changes: 2 additions & 2 deletions modules/db-tx-log/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ lint:
clj-kondo --lint src test deps.edn

test:
clojure -M:test --profile :ci
clojure -M:test:kaocha --profile :ci

test-coverage:
clojure -M:test-coverage
clojure -M:test:coverage

clean:
rm -rf .clj-kondo/.cache .cpcache target
Expand Down
Loading

0 comments on commit 90242b8

Please sign in to comment.