This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-17
Channels
- # announcements (2)
- # asami (3)
- # babashka (30)
- # beginners (23)
- # calva (28)
- # cider (3)
- # clj-kondo (16)
- # clj-on-windows (7)
- # cljs-dev (7)
- # clojure (47)
- # clojure-austin (3)
- # clojure-europe (25)
- # clojure-gamedev (3)
- # clojure-greece (1)
- # clojure-nl (1)
- # clojure-uk (3)
- # clojurescript (54)
- # community-development (24)
- # conjure (16)
- # duct (1)
- # emacs (8)
- # events (1)
- # figwheel-main (4)
- # fulcro (13)
- # gratitude (20)
- # helix (3)
- # honeysql (8)
- # hyperfiddle (12)
- # introduce-yourself (1)
- # jobs (6)
- # lambdaisland (1)
- # lsp (35)
- # malli (1)
- # meander (27)
- # minecraft (11)
- # off-topic (12)
- # pathom (1)
- # portal (11)
- # releases (1)
- # remote-jobs (1)
- # ring (11)
- # sci (1)
- # shadow-cljs (53)
- # specter (5)
- # xtdb (20)
today I have gratitude for generative testing, which is helping me find subtle edge cases in some tricky code
Cool! Would love to learn from your experience, would it make for a good article/blog? (to write up in your copious amounts of spare time )
oh, it might get there some day
there are many excellent talks about using generative testing in Clojure already though (and a section in Clojure Applied I've already written :)
One of my coworkers if friends with Fred Hebert who wrote “Property-Based Testing with PropEr, Erlang, and Elixir: Find Bugs Before Your Users Do” . He gave us an hour long talk about prop based testing and it was outstanding. He mostly works in erlang but the talk was great
https://www.youtube.com/watch?v=zi0rHwfiX1Q is an excellent keynote from Clojure/West 2014 from John Hughes, who similarly came from Erlang world
https://www.youtube.com/watch?v=JMhNINPo__g is a good follow up from Reid who ported those ideas over into Clojure with test.check
> generative testing, which is helping me find subtle edge cases in some tricky code Oh to be looking over your shoulder right now!
well it's just me staring at the same piece of code for an hour, so not too interesting :)
A thing I struggle with is when to use generative testing and when not to. I’ve overdone it in both directions.
the Greeks had it all worked out
> well it's just me staring at the same piece of code for an hour, so not too interesting :) Maybe you will be surprised to find out what people (I, at any rate) find interesting :D
Given the ease of writing Greek letters from a US keyboard, I’m now imagining writing my generative test suites using Greek letters for vars. :thinking_face: (you know I’m perverse enough to do it too)
@U051N6TTC m'colleague Ben has done just that in his first little "learn me a Clojure" project: e.g. https://gitlab.com/bzinberg-misc/snek/-/blob/main/src/sn%C3%A9k/core.clj#L240 and https://gitlab.com/bzinberg-misc/snek/-/blob/main/src/sn%C3%A9k/core_util.clj#L201 (https://gitlab.com/bzinberg-misc/snek a https://en.wikipedia.org/wiki/Snake_%28video_game_genre%29 that takes place in the https://en.wikipedia.org/wiki/Poincar%C3%A9_disk_model)