mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +00:00
* first e2e example * Add wally repl pause/resume example * use with-page-open * add indent outdent test * outliner add delete tests * remove all timeout usage * refactor: move fns to logseq.util * Add commands tests for command trigger and node reference * Add http-server * add bb script to build release and run tests * exit when tests finished * Add clj e2e workflow * increase slow-mo to 100
19 lines
646 B
Clojure
19 lines
646 B
Clojure
(ns build
|
|
(:refer-clojure :exclude [test])
|
|
(:require [clojure.tools.build.api :as b]
|
|
[clojure.tools.deps :as t]))
|
|
|
|
(defn test "Run all the tests."
|
|
[_opts]
|
|
(println "\nRunning tests...")
|
|
(let [basis (b/create-basis {:aliases [:test]})
|
|
combined (t/combine-aliases basis [:test])
|
|
cmds (b/java-command
|
|
{:basis basis
|
|
:java-opts (:jvm-opts combined)
|
|
:main 'clojure.main
|
|
:main-args ["-m" "cognitect.test-runner"]})
|
|
{:keys [exit]} (b/process cmds)]
|
|
(when-not (zero? exit)
|
|
(throw (ex-info "Tests failed" {})))))
|