3 ms·
Table driven tests are fine for more than, let’s say 6 test entries, but otherwise a set of assert or require is much more pleasant to the eye. AND if you want
by stpedgwdgfhgdd 3y ago
Table driven tests are fine for more than, let’s say 6 test entries, but otherwise a set of assert or require is much more pleasant to the eye. AND if you want to debug, just click on the stacktrace in your IDE and set the break point for that failing test. Way faster.
Again, table driven tests definitely have their place, but in the spirit of XP, it is not the most simple thing out there. Do not use by default.
- athorax 3y agoYou can target specific table driven tests by name in order to just run/debug a single case