diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a497870..1524877 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,4 +40,4 @@ jobs: run: clojure -M:test:spec - name: Run ClojureScript Tests - run: clojure -M:test:cljs once + run: clojure -M:test:cljs ci diff --git a/CHANGES.md b/CHANGES.md index 1b00e87..59f29c9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,15 @@ +# 3.4.8 + +* can now be built and executed under `:advanced` ClojureScript optimizations + * exports functions needed by JavaScript + * refactors functions that would otherwise fail with `:advanced` optimizations + * extends `run-specs` to accepts string keys in addition to keyword keys + * exports `speclj.run.standard.arm()` function to JavaScript (synonym for `speclj.run.standard.armed = true`) + * exports `speclj.run.standard.disarm()` function to JavaScript (synonym for `speclj.run.standard.armed = false`) + * `Runner` can now `get-descriptions` + * `Runner` can now `filter-descriptions` based on a hash-map of string/boolean namespace pairs + * `{"speclj.core" true "speclj.reporting" false"}` + # 3.4.7 * fixes bug where `should-throw` would expand string predicates improperly under cljs whitespace optimizations. diff --git a/README.md b/README.md index b3b2b50..eb8df34 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,9 @@ Include speclj in your `:dev` profile `:dependencies` and`:plugins`. Then change ```clojure ; - snip -:dependencies [[org.clojure/clojure "1.11.2"]] -:profiles {:dev {:dependencies [[speclj "3.4.6"]]}} -:plugins [[speclj "3.4.6"]] +:dependencies [[org.clojure/clojure "1.11.3"]] +:profiles {:dev {:dependencies [[speclj "3.4.8"]]}} +:plugins [[speclj "3.4.8"]] :test-paths ["spec"] ``` @@ -140,7 +140,7 @@ Add a `spec` alias to your `deps.edn`. ```clojure { :aliases {:spec {:main-opts ["-m" "speclj.main" "-c"] - :extra-deps {speclj/speclj {:mvn/version "3.4.6"}} + :extra-deps {speclj/speclj {:mvn/version "3.4.8"}} :extra-paths ["spec"]}} } ``` @@ -245,10 +245,8 @@ p.onConsoleMessage = function (x) { p.injectJs(phantom.args[0]); var result = p.evaluate(function () { - speclj.run.standard.armed = true; - return speclj.run.standard.run_specs( - cljs.core.keyword("color"), true - ); + speclj.run.standard.arm(); + return speclj.run.standard.run_specs("color", true); }); phantom.exit(result); @@ -314,7 +312,7 @@ Here's an example alias for your `deps.edn`. ```clojure {:aliases {:cov {:main-opts ["-m" "cloverage.coverage" "--runner" ":speclj" "-p" "src" "-s" "spec" ] :extra-deps {cloverage/cloverage {:mvn/version "1.2.4"} - speclj/speclj {:mvn/version "3.4.6"}}}}} + speclj/speclj {:mvn/version "3.4.8"}}}}} ``` Sadly, Cloverage doesn't offer a way to pass arguments to the runner (Speclj in this case). Speclj will use the diff --git a/bin/specs.html b/bin/specs.html index e185d6a..e63025d 100644 --- a/bin/specs.html +++ b/bin/specs.html @@ -1,69 +1,61 @@
- -
- Typically these specs are run using a headless browser driven by a script.
- But you can run them here if you like.
- That is, assuming all the cljs has been compiled in development.
-
- Open up the browser console:
+ Typically these specs are run using a headless browser driven by a script.
+ But you can run them here if you like.
+ That is, assuming all the cljs has been compiled in development.
+
+ Open up the browser console:
runSpecs()- \ No newline at end of file +