|
|
|
|
|
by LockAndLol
1960 days ago
|
|
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) |
|
I think regexes may have a steep learning curve, but IMHO it's well-worth the effort in order to learn. Pythex is pretty great at learning regexes and once you learn them you have a pretty powerful tool at your disposal for a number of matters.