Skip to content

Commit 9e79264

Browse files
tengstrandJoakim Tengstrand
andauthored
Add instructions on how to run tests from the root module in Cursive. (#417)
Co-authored-by: Joakim Tengstrand <joakimtengstrand@gmai.com>
1 parent 799eb52 commit 9e79264

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

components/version/src/polylith/clj/core/version/interface.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
(def minor 2)
2626
(def patch 18)
2727
(def revision SNAPSHOT) ;; Set to SNAPSHOT or RELEASE.
28-
(def snapshot 22) ;; Increase by one for every snapshot release, or set to 0 if a release.
28+
(def snapshot 23) ;; Increase by one for every snapshot release, or set to 0 if a release.
2929
(def snapshot? (= SNAPSHOT revision))
3030

3131
(def name-without-rev (str major "." minor "." patch))

doc/testing.adoc

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,19 @@ image::images/testing/failing-test.png[]
7474
[TIP]
7575
====
7676
*Cursive users*:
77-
If the test doesn't run at all, you may need to manually set the module to the root module (`example` in this case).
78-
We raised https://github.com/cursive-ide/cursive/issues/2828[an issue with Cursive] about this.
77+
78+
You need to instruct Cursive to run tests from the root module (`example` in this case) by performing the following steps:
79+
80+
* Select `Edit Configuration...` in the menu with configurations at the top of the IDE.
81+
82+
* Select `Edit configuration templates...` at the bottom left corner.
83+
84+
* Select `clojure.test` in the left menu.
85+
86+
* Set `Module` under `Common Options` to `example` and press `OK`.
87+
88+
You should now be able to run tests from the IDE.
89+
7990
====
8091

8192

readme.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
image::doc/images/logo.png[width=400]
22
:cljdoc-doc-url: https://cljdoc.org/d/polylith/clj-poly/CURRENT/doc
33
// Make sure we use the same version here as in components/version/.../interface.clj
4-
:snapshot-version: 0.2.18 SNAPSHOT #22
4+
:snapshot-version: 0.2.18 SNAPSHOT #23
55

66
//https://cljdoc.org/d/polylith/clj-poly/CURRENT[image:https://cljdoc.org/badge/polylith/clj-poly[cljdoc]]
77
https://polylith.gitbook.io/poly[image:https://badgen.net/badge/doc/0.2.17-alpha/blue[]]

0 commit comments

Comments
 (0)