Stand up automated js/tap-based test harness framework.

This commit is contained in:
Scott Richmond 2023-12-24 17:08:02 -05:00
parent 20ea25761a
commit afb8bacb25
6 changed files with 4103 additions and 22 deletions

3
foo.ld
View File

@ -1 +1,2 @@
:foo & EXPECT "foo"
"foo"

View File

@ -3,4 +3,4 @@ repl:
clj -X:repl clj -X:repl
build: build:
shadow-cljs release node shadow-cljs release module

4100
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,12 +3,14 @@
"version": "0.1.0-alpha.7.9", "version": "0.1.0-alpha.7.9",
"description": "A Ludus interpreter in a pure JS function.", "description": "A Ludus interpreter in a pure JS function.",
"main": "target/js/ludus.js", "main": "target/js/ludus.js",
"type": "module",
"directories": {}, "directories": {},
"keywords": [], "keywords": [],
"author": "Scott Richmond", "author": "Scott Richmond",
"license": "GPL-3.0", "license": "GPL-3.0",
"files": "target/js/*",
"devDependencies": { "devDependencies": {
"shadow-cljs": "^2.26.0" "shadow-cljs": "^2.26.0",
}, "tap": "^18.6.1"
"dependencies": {} }
} }

View File

@ -8,6 +8,10 @@
:output-to "target/js/ludus.js" :output-to "target/js/ludus.js"
:exports {:run ludus.node/run} :exports {:run ludus.node/run}
:modules {:main {:entries [ludus.node]}}} :modules {:main {:entries [ludus.node]}}}
:module {:target :esm
:output-dir "target/js"
:modules {:ludus {:exports {run ludus.node/run test ludus.node/run-test}}}
}
:browser {:target :browser :browser {:target :browser
:output-dir "target/js" :output-dir "target/js"
:asset-path "target" :asset-path "target"

View File

@ -64,7 +64,7 @@
(defn test-run [source] (run source true)) (defn test-run [source] (run source true))
(do (comment
(def source " (def source "