You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-33
Original file line number
Diff line number
Diff line change
@@ -6,31 +6,28 @@ RCF turns your Rich Comment Forms into tests (in the same file as your functions
6
6
7
7
Features
8
8
* Clojure/Script
9
-
* Async tests
10
-
* Zero boilerplate
11
-
* Natural REPL workflow
12
-
* No file watchers, no extra windows, no beeping, no latency
13
-
* One key-chord to run tests, no hotkey configuring
9
+
* async tests
10
+
* zero boilerplate
11
+
* natural REPL workflow
12
+
* one key-chord to run tests, no hotkey configuring
13
+
* same-file tests (examples are better than docstrings)
14
+
* no file watchers, no extra windows, no beeping, no latency
15
+
* notebook support – [example NextJournal notebook](https://nextjournal.com/dustingetz/missionary-relieve-backpressure)
16
+
* it's fun! ✅✅✅
14
17
15
-
Deeper goal: **a notation for communication**
16
-
* Documentation tool. RCF lets you share example usages next to the source code of the function (which is way better than docstrings). Figuring out what dense Clojure code does is actually really hard and RCF fixes that. [Example nextjournal notebook documentation using RCF](https://nextjournal.com/dustingetz/missionary-relieve-backpressure)
17
-
* Pair programming tool. While pairing on Zoom, bang out some assertions quickly, right in the file you're working on. Watch your communication bandwidth improve.
18
-
* Teaching tool. RCF helps beginners experiment and check their work.
19
-
20
-
RCF is specifically engineered to support [hyperfiddle/electric](https://github.com/hyperfiddle/electric), that we test, document and teach with RCF.
18
+
RCF is specifically engineered to support [Electric Clojure](https://github.com/hyperfiddle/electric), which we test, document and teach with RCF.
21
19
22
20
Hype quotes:
23
21
* "RCF has changed my habits with regards to tests. It is so much easier than flipping back and forth between files, you get my preferred work habits - work in a comment block until something works. But before RCF I never took the time to turn comment blocks into an automated test"
24
-
* "I think people make the mistake of comparing this with other methods of inlining tests near their function definitions (which has been possible, though uncommon, for a long time). The integration with the REPL, low syntax/interface, reduces friction and makes testing more attractive as a language of communication and verification."
25
-
* "I used RCF in a successful interview. RCF was a massive help in communication and a fast tool for thought whilst under the conditions of technical interview."
26
22
* "I use RCF to do leetcode style questions as 'fun practice.' It certainly didn't feel fun before!"
23
+
* "I think people make the mistake of comparing this with other methods of inlining tests near their function definitions. The integration with the REPL, low syntax/interface, reduces friction and makes testing more attractive as a language of communication and verification."
24
+
* "I used RCF in a successful interview. RCF was a massive help in communication and a fast tool for thought whilst under the conditions of technical interview."
27
25
28
26
# Dependency
29
27
30
-
Project maturity: CLJ is stable, external users. CLJS is alpha
28
+
Project maturity: CLJ is stable, CLJS is experimental.
@@ -194,7 +205,7 @@ Ran 1 tests containing 8 assertions.
194
205
195
206
# ClojureScript configuration
196
207
197
-
For CLJS tests to run, `rcf/enable!` must be true in both CLJ (shadow-cljs macroexpansion time) and CLJS (JS runtime). Successful runs will print green checkboxes in the browser console, not the REPL, because REPLs don't properly intercept the async println. (Please file an issue or DM us on slack if you can help us understand why.)
208
+
For CLJS tests to run, `rcf/enable!` must be true **in both CLJ (shadow-cljs macroexpansion time) and CLJS (JS runtime)**. Reports may be printed to **browser console instead of the REPL**, because browser REPLs donn't intercept the async println.
0 commit comments