Skip to content

Commit ab0278d

Browse files
committed
Update libs tests
- cljstyle - now using rewrite-clj v1, woot! - clojure-lsp - new release - test-doc-blocks - new release
1 parent 7bac58d commit ab0278d

File tree

2 files changed

+8
-29
lines changed

2 files changed

+8
-29
lines changed

README.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ A library that reads and writes Clojure, ClojureScript and https://github.com/ed
2323

2424
* Migration from https://github.com/lread/rewrite-cljc-playground[rewrite-cljc-playground] complete.
2525
Rewrite-cljc-playground is where I first merged rewrite-clj v0 and rewrite-cljs.
26-
* We are automatically link:doc/02-developer-guide.adoc#libs-test[testing against popular libraries].
26+
* We are automatically link:#used-in[testing against popular libraries].
2727
We patch them to use rewrite-clj v1 and then run their test suites.
28-
Only a minor failure on zprint v1.1.1 was found due to intentional breaking changes in namespaced maps.
28+
No major issues have been found.
2929
* Please review link:CHANGELOG.adoc[change log] for an overview of all v1 changes.
3030
* I am very conservative on making any further v0->v1 breaking changes, but am open to breaking changes to any of the new v1 work.
3131

@@ -50,14 +50,14 @@ Some projects using rewrite-clj v1
5050
* https://github.com/liquidz/antq[antq] ^🐥^
5151
* https://github.com/borkdude/carve[carve] ^🐥^ (in dev)
5252
* https://github.com/weavejester/cljfmt[cljfmt] ^🐥^ (in dev)
53+
* https://github.com/greglook/cljstyle[cljstyle] ^🐥^
5354
* https://github.com/clojure-lsp/clojure-lsp[clojure-lsp] ^🐥^
5455
* https://github.com/borkdude/rewrite-edn[rewrite-edn] ^🐥^
5556
* https://github.com/lread/test-doc-blocks[test-doc-blocks] ^🐥^
5657

5758
Some projects using rewrite-clj v0 and/or rewrite-cljs
5859

5960
* https://github.com/mauricioszabo/atom-chlorine[atom-chlorine] ^📍^
60-
* https://github.com/greglook/cljstyle[cljstyle] ^🐥^ ^🩹^
6161
* https://github.com/Olical/depot[depot] ^🐥^ ^🩹^
6262
* https://github.com/jonase/kibit[kibit] ^🐥^
6363
* https://github.com/xsc/lein-ancient[lein-ancient] ^🐥^
@@ -73,7 +73,7 @@ Have an update? Let us know!
7373

7474
^🐥^ [.small]#canary tested against rewrite-clj v1 link:doc/02-developer-guide.adoc#libs-test[lib test suite]# +
7575
^🩹^ [.small]#source required minor change to work with rewrite-clj v1# +
76-
^📍^ [.small]#no easy to run unit tests found for this project#
76+
^📍^ [.small]#no easy to run automated unit tests found for this project#
7777

7878
== Versioning
7979

script/libs_tests.clj

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -161,15 +161,6 @@
161161
(status/line :detail (format "-> here's the diff for %s" fname))
162162
(shcmd-no-exit ["git" "--no-pager" "diff" "--no-index" orig-filename fname])))
163163

164-
;;
165-
;; antq
166-
;;
167-
(defn antq-patch [{:keys [home-dir rewrite-clj-version]}]
168-
(patch-deps {:filename (str (fs/file home-dir "deps.edn"))
169-
:removals #{'lread/rewrite-cljc}
170-
:additions {'rewrite-clj/rewrite-clj {:mvn/version rewrite-clj-version}}})
171-
(patch-rewrite-cljc-sources home-dir))
172-
173164
;;
174165
;; carve
175166
;;
@@ -204,18 +195,7 @@
204195
(defn- cljstyle-patch [{:keys [home-dir rewrite-clj-version]}]
205196
(patch-deps {:filename (str (fs/file home-dir "project.clj"))
206197
:removals #{'rewrite-clj}
207-
:additions [['rewrite-clj rewrite-clj-version]]})
208-
209-
(status/line :detail "=> cljstyle needs to hacks to work with rewrite-clj v1")
210-
(status/line :detail "=> hack 1 of 2: update ref to internal use of StringNode")
211-
(replace-in-file (str (fs/file home-dir "src/cljstyle/format/zloc.clj"))
212-
"rewrite_clj.node.string.StringNode"
213-
"rewrite_clj.node.stringz.StringNode")
214-
215-
(status/line :detail "=> hack 2 of 2: update test expectation of exception type")
216-
(replace-in-file (str (fs/file home-dir "test/cljstyle/task_test.clj"))
217-
"java.lang.Exception: Unexpected"
218-
"clojure.lang.ExceptionInfo: Unexpected"))
198+
:additions [['rewrite-clj rewrite-clj-version]]}))
219199

220200
;;
221201
;; depot
@@ -371,9 +351,8 @@
371351
:show-deps-fn lein-deps-tree
372352
:test-cmds [["lein" "test"]]}
373353
{:name "cljstyle"
374-
:version "0.14.0"
354+
:version "0.15.0"
375355
:platforms [:clj]
376-
:note "2 minor hacks to pass with rewrite-clj v1"
377356
:github-release {:repo "greglook/cljstyle"
378357
:via :tag}
379358
:patch-fn cljstyle-patch
@@ -382,7 +361,7 @@
382361
["lein" "test"]]}
383362
{:name "clojure-lsp"
384363
:platforms [:clj]
385-
:version "2021.03.24-00.41.55"
364+
:version "2021.03.30-20.42.34"
386365
:github-release {:repo "clojure-lsp/clojure-lsp"}
387366
:patch-fn clojure-lsp-patch
388367
:show-deps-fn cli-deps-tree
@@ -452,7 +431,7 @@
452431
:prep-fn refactor-nrepl-prep
453432
:test-cmds [["lein" "with-profile" "+1.10,+plugin.mranderson/config" "test"]]}
454433
{:name "test-doc-blocks"
455-
:version "1.0.116-alpha"
434+
:version "1.0.124-alpha"
456435
:platforms [:clj :cljs]
457436
:note "generates tests under clj, but can also be run under cljs"
458437
:github-release {:repo "lread/test-doc-blocks"

0 commit comments

Comments
 (0)