Back
run-test-var (clj)
(source)function
(run-test-var v)
Runs the tests for a single Var, with fixtures executed around the test, and summary output after.
Examples
tonsky/clj-simple-router
(ns clj-simple-router.core-test
(:require
[clj-simple-router.core :as router]
[clojure.test :as test :refer [is are deftest testing]]))
(comment
(test/test-ns *ns*)
(test/run-test-var #'test-edge-cases))
tonsky/datascript-storage-sql
(ns datascript.storage.sql.test-h2
(:require
[clojure.test :as t :refer [deftest is are testing]]
[datascript.core :as d]
[datascript.storage.sql.core :as storage-sql]
[datascript.storage.sql.test-core :as test-core])
(:import
[java.nio.file Files Path]
[java.sql DriverManager]))
(comment
(t/run-test-var #'test-h2)
(t/run-tests *ns*))
tonsky/datascript-storage-sql
(ns datascript.storage.sql.test-pool
(:require
[clojure.test :as t :refer [deftest is are testing]]
[datascript.core :as d]
[datascript.storage.sql.core :as storage-sql]
[datascript.storage.sql.test-core :as test-core])
(:import
[java.nio.file Files Path]
[javax.sql DataSource]
[java.util.concurrent Executors Future]
[org.sqlite SQLiteDataSource]))
(comment
(t/run-test-var #'test-sqlite)
(t/run-tests *ns*))
tonsky/datascript-storage-sql
(ns datascript.storage.sql.test-postgresql
(:require
[clojure.test :as t :refer [deftest is are testing]]
[datascript.core :as d]
[datascript.storage.sql.core :as storage-sql]
[datascript.storage.sql.test-core :as test-core])
(:import
[java.nio.file Files Path]
[java.sql DriverManager]))
(comment
(t/run-test-var #'test-postgresql)
(t/run-tests *ns*))
tonsky/datascript-storage-sql
(ns datascript.storage.sql.test-mysql
(:require
[clojure.test :as t :refer [deftest is are testing]]
[datascript.core :as d]
[datascript.storage.sql.core :as storage-sql]
[datascript.storage.sql.test-core :as test-core])
(:import
[java.nio.file Files Path]
[java.sql Connection DriverManager]))
(comment
(t/run-test-var #'test-mysql)
(t/run-tests *ns*))