Skip to content

Commit 5fb4fc4

Browse files
committed
change root ns from net.vanderhart to cognitect
1 parent 49aaf30 commit 5fb4fc4

File tree

5 files changed

+12
-46
lines changed

5 files changed

+12
-46
lines changed

readme.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ probably wish to put it in a `dev` or `test` alias. For example:
3131

3232
```clojure
3333
:aliases {:dev {:extra-paths ["test"]
34-
:extra-deps {net.vanderhart/test-runner {:git/url "[email protected]:levand/test-runner"
35-
:sha "e3e4ce3d7e29349eeff44afd654bc2de6d5f3ae5"}}}}
34+
:extra-deps {com.cognitect/test-runner {:git/url "[email protected]:cognitect-labs/test-runner"
35+
:sha "e3e4ce3d7e29349eeff44afd654bc2de6d5f3ae5"}}}}
3636
```
3737

3838
Then, invoke Clojure via the command line, passing
39-
`net.vanderhart.test-runner` as the main namespace to run using the
39+
`cognitect.test-runner` as the main namespace to run using the
4040
`-m` option.
4141

4242
```bash
43-
clj -Cdev -Rdev -m net.vanderhart.test-runner
43+
clj -Adev -m cognitect.test-runner
4444
```
4545

4646
This will scan your project's `test` directory for any tests defined
@@ -63,7 +63,7 @@ the `foo.bar` and `foo.baz` namespaces, in the `test` and `src`
6363
directories:
6464

6565
```
66-
clj -Cdev -Rdev -m net.vanderhart.test-runner -d test -d src -n foo.bar -n foo.baz
66+
clj -Adev -m cognitect.test-runner -d test -d src -n foo.bar -n foo.baz
6767
```
6868

6969
### Using Inclusions and Exclusions
@@ -80,13 +80,13 @@ For example, you could tag your integration tests like so:
8080
Then to run only integration tests, you could do:
8181

8282
```
83-
clj -Cdev -Rdev -m net.vanderhart.test-runner -i :integration
83+
clj -Adev -m cognitect.test-runner -i :integration
8484
```
8585

8686
Or to run all tests *except* for integration tests:
8787

8888
```
89-
clj -Cdev -Rdev -m net.vanderhart.test-runner -e :integration
89+
clj -Adev -m cognitect.test-runner -e :integration
9090
```
9191

9292
If both inclusions and exclusions are present, exclusions take priority over inclusions.

src/net/vanderhart/test_runner.clj renamed to src/cognitect/test_runner.clj

+1-34
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(ns net.vanderhart.test-runner
1+
(ns cognitect.test-runner
22
(:require [clojure.tools.namespace.find :as find]
33
[clojure.spec.alpha :as s]
44
[clojure.java.io :as io]
@@ -105,36 +105,3 @@
105105
(if (-> args :options :help)
106106
(help args)
107107
(test (:options args)))))
108-
109-
110-
(comment
111-
112-
(-main "test" "-n" "net.vanderhart.test-runner.samples")
113-
(-main "test")
114-
115-
116-
(-main "test" "-v" "net.vanderhart.test-runner.sample-property/first-element-is-min-after-sorting"
117-
#_"-v" #_"net.vanderhart.test-runner.samples/foobar")
118-
119-
(-main "test" "-i" "integration")
120-
121-
(-main "test" "-e" "integration")
122-
123-
(-main "test")
124-
125-
(-main "-h")
126-
127-
(->> (find/find-namespaces-in-dir (io/file "test"))
128-
(map #(do (require %) %))
129-
(map ns-publics)
130-
(map vals)
131-
(apply concat)
132-
(test/test-vars)
133-
134-
)
135-
136-
137-
138-
139-
140-
)

test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/usr/local/bin/clojure -Srepro -R:dev -C:dev -m net.vanderhart.test-runner
1+
/usr/local/bin/clojure -Srepro -Adev -m cognitect.test-runner

test/net/vanderhart/test_runner/sample_property.clj renamed to test/cognitect/test_runner/sample_property.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(ns net.vanderhart.test-runner.sample-property
1+
(ns cognitect.test-runner.sample-property
22
(:require [clojure.test.check :as tc]
33
[clojure.test.check.generators :as gen]
44
[clojure.test.check.properties :as prop]

test/net/vanderhart/test_runner/samples.clj renamed to test/cognitect/test_runner/samples.clj

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
(ns net.vanderhart.test-runner.samples
1+
(ns cognitect.test-runner.samples
22
(:require [clojure.test :as t :refer [deftest is testing]]))
33

44
(deftest math-works
55
(testing "basic addition and subtraction"
66
(is (= 42 (+ 40 2)))
7-
(is (= 42 (- 44 2))))
8-
)
7+
(is (= 42 (- 44 2)))))
98

109
(deftest ^:integration test-i
1110
(is (= 1 1)))

0 commit comments

Comments
 (0)