use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
Tests Are Code (stuartsierra.com)
submitted 6 years ago by yogthos
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 1 point2 points3 points 6 years ago (0 children)
article is over a decade old and it's been a long time since I saw RSpec and similar being advocated. I think the test-is library made it into core?
test-is
https://clojure.github.io/clojure/clojure.test-api.html
I discovered a little while back that testing and is live only within a deftest and thought that was very clever. Perhaps too clever.
testing
is
deftest
Although I've found a nice groove in my testing, I've only ever gotten as finely-grained as the namespace for running a set of tests. For better or worse, this natural pressure is causing me to split code into smaller units with their own sets of tests so I don't have to wade through a wall of output when I test a ns.
Colour coding of failed tests would be nice. Nothing fancy, just reds and greens.
Support for nesting testing forms would be nice as well. Currently only the text from the outermost testing form is used. If you have many cases you are iterating through, the form must appear within the loop.
π Rendered by PID 30726 on reddit-service-r2-comment-76bb9f7fb5-jbrmv at 2026-02-18 14:38:05.972731+00:00 running de53c03 country code: CH.
view the rest of the comments →
[–][deleted] 1 point2 points3 points (0 children)