Fork me on GitHub
#gratitude
<
2022-05-17
>
Alex Miller (Clojure team)16:05:04

today I have gratitude for generative testing, which is helping me find subtle edge cases in some tricky code

🎲 27
lread16:05:36

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 simple_smile)

Alex Miller (Clojure team)16:05:58

oh, it might get there some day

Alex Miller (Clojure team)16:05:43

there are many excellent talks about using generative testing in Clojure already though (and a section in Clojure Applied I've already written :)

lread16:05:51

Feel free to ungratitude me for suggesting you do more work.

😆 1
dpsutton16:05:56

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

Alex Miller (Clojure team)16:05:02

https://www.youtube.com/watch?v=zi0rHwfiX1Q is an excellent keynote from Clojure/West 2014 from John Hughes, who similarly came from Erlang world

Alex Miller (Clojure team)16:05:39

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

🚀 1
adi17:05:16

> generative testing, which is helping me find subtle edge cases in some tricky code Oh to be looking over your shoulder right now!

Alex Miller (Clojure team)17:05:57

well it's just me staring at the same piece of code for an hour, so not too interesting :)

zane17:05:22

A thing I struggle with is when to use generative testing and when not to. I’ve overdone it in both directions.

Alex Miller (Clojure team)17:05:54

moderation in all things

1
Alex Miller (Clojure team)17:05:30

the Greeks had it all worked out

lread18:05:44

So “it’s all Greek to me” could be a good thing!

adi06:05:12

> 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

quoll13:05:48

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)

steffan15:05:25

In a previous job, we'd torture rigorously test our web app with Greek text input. It uncovered plenty of encoding issues!

quoll18:05:46

Similarly, we would hit the Mulgara database with strings that contained characters like 𐐉 (0x10409)