Skip to content

Commit

Permalink
Move test-runner files
Browse files Browse the repository at this point in the history
  • Loading branch information
PEZ committed Nov 6, 2024
1 parent 2a15b10 commit 1dc33bf
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .clj-kondo/config.edn
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{:lint-as {macros/deftest-async clojure.test/deftest}}
{:lint-as {test-runner.macros/deftest-async clojure.test/deftest}}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns config)
(ns test-runner.config)

(defn ns-symbols []
['tests.a-test])
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns db
(ns test-runner.db
(:require [cljs.test]))

(def !state (atom {:running nil
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns macros)
(ns test-runner.macros)

(defmacro deftest-async [name opts & body]
(let [[opts body]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(ns test-runner
(ns test-runner.runner
(:require [clojure.string :as string]
[cljs.test]
[config :as config]
[db :as db]
[promesa.core :as p]))
[promesa.core :as p]
[test-runner.config :as config]
[test-runner.db :as db]))

(defn- write [& xs]
(js/process.stdout.write (string/join " " xs)))
Expand Down
2 changes: 1 addition & 1 deletion e2e-test-ws/.joyride/src/tests/a_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(:require ["vscode" :as vscode]
[cljs.test :refer [deftest testing is]]
[promesa.core :as p]
[macros :refer [deftest-async]]))
[test-runner.macros :refer [deftest-async]]))

(deftest hello
(testing "We can test things"
Expand Down
10 changes: 0 additions & 10 deletions e2e-test-ws/.vscode/settings.json

This file was deleted.

2 changes: 1 addition & 1 deletion e2e-test-ws/runTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ const vscode = require('vscode');
exports.run = async () => {
return vscode.commands.executeCommand(
'joyride.runCode',
"(require '[test-runner :as runner]) (runner/run-all-tests)"
"(require '[test-runner.runner :as runner]) (runner/run-all-tests)"
);
};

0 comments on commit 1dc33bf

Please sign in to comment.