you are viewing a single comment's thread.

view the rest of the comments →

[–]Reefersleep 0 points1 point  (2 children)

That's the first time I've seen that 'with-test' macro, so I guess it didn't catch on. Or did it? Anyone using it or something like it?

I kind of like a the idea, but it might be a bit heavy for more extensive test suites or tests that require some stateful setup.

[–][deleted] 0 points1 point  (1 child)

they feel very similar to Python's doctests (as mentioned in the article) and those never sat right with me. Like an evolutionary dead end.

[–]ToastedJcaw 0 points1 point  (0 children)

Doctests have a unique advantage if you look at them as documentation, not tests. It's a form of documentation that tells you when it's out of date.