Comment

Comment by LockAndLol

I honestly don't find tests that "self documenting". They are complementary and optional to reference documentation, but much less readable. Every time I've looked at them, I've found myself better grasping what the function does by simply reading the function itself.

And having to read regexes in order to understand code seems more like a negative. In that regard pytest and simple unittest code reads more easily IMO.

The most readable test code I've come across is that written in jasmine (behavioural driven testing)

parent LockAndLol 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton