* make tests run on windows as the default - change from selecting tests to run to selecting tests to skip (remove all :windows tags, add :skip-windows tag to tests that don't currently work on windows) - handfuls of calls to `normalize` and `escape-file-paths` to handle platform differences - split `task-test` to make most of the tests run on windows, and exclude just a couple of Unix-y tests * make a binding name clearer * skip nrepl-server-test on Windows - test fails on CI, so disabling it for now * unset bb environment vars after running tests * unset bb environment var after running release-artifact BABASHKA_EDN being set can interfere with some tests, so unset it before running the native tests * skip uberjar test on Windows uberjar-test's 'throw on empty classpath' test failing on Windows native (but passes on JVM) - skip it for now
13 lines
427 B
Clojure
13 lines
427 B
Clojure
(ns babashka.transit-test
|
|
(:require
|
|
[babashka.test-utils :as test-utils]
|
|
[clojure.java.io :as io]
|
|
[clojure.test :as t :refer [deftest is]]))
|
|
|
|
(defn bb [& args]
|
|
(apply test-utils/bb nil (map str args)))
|
|
|
|
(deftest transit-test
|
|
(is (= "\"foo\"\n{:a [1 2]}\n"
|
|
(bb (format "(load-file \"%s\")"
|
|
(test-utils/escape-file-paths (.getPath (io/file "test-resources" "babashka" "transit.clj"))))))))
|