Hacker News new | ask | show | jobs
by throway453sde 1612 days ago
"youtube-dl" plugin has one neat idea with respect to tests. Both the test and the plugin code for a particular website are in the same file.If the website changes and breaks the plugin updating the tests is much easier way to fix the code. This makes sure tests are always updated, rather the other way of not updating the tests due to no incentive since the problem is already solved which leads to tests being useless.