Skip to content

Commit b48c2d9

Browse files
authored
tests: rename test namespaces to end in -test (#38)
It is what most folks and tools expect these days. Closes #35
1 parent 697705f commit b48c2d9

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

deps.edn

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
org.slf4j/jcl-over-slf4j {:mvn/version "1.7.36"}
2020
org.slf4j/jul-to-slf4j {:mvn/version "1.7.36"}
2121
org.slf4j/log4j-over-slf4j {:mvn/version "1.7.36"}}
22-
:main-opts ["-m" "cognitect.test-runner"
23-
;; our test namespaces do not always end in -test, hence the override:
24-
"--namespace-regex" "clj-http\\.test\\..*"]}
22+
:main-opts ["-m" "cognitect.test-runner"]}
2523
;; for consistent linting we use a specific version of clj-kondo through the jvm
2624
:clj-kondo {:extra-deps {clj-kondo/clj-kondo {:mvn/version "2022.08.03"}}
2725
:override-deps {org.clojure/clojure {:mvn/version "1.11.1"}}

test/clj_http/test/client.clj renamed to test/clj_http/test/client_test.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
(ns clj-http.test.client
1+
(ns clj-http.test.client-test
22
(:require [clj-http.lite.client :as client]
3-
[clj-http.test.core :refer [base-req with-server current-port]]
3+
[clj-http.test.core-test :refer [base-req with-server current-port]]
44
[clj-http.lite.util :as util]
55
[clojure.test :refer [deftest is testing use-fixtures]])
66
(:import (java.net UnknownHostException)))

test/clj_http/test/cookies.clj renamed to test/clj_http/test/cookies_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(ns clj-http.test.cookies
1+
(ns clj-http.test.cookies-test
22
#_(:use [clj-http.lite.util]
33
[clojure.test]))
44

test/clj_http/test/core.clj renamed to test/clj_http/test/core_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(ns clj-http.test.core
1+
(ns clj-http.test.core-test
22
(:require [clj-http.lite.core :as core]
33
[clj-http.lite.util :as util]
44
[clojure.test :refer [deftest is use-fixtures]]

0 commit comments

Comments
 (0)