3 ms·
There are so many unneeded tests being written I can't even begin to point them out. Here's an example: http://entulho.fiatjaf.alhur.es/notes/the-unit-test-bubb
by fiatjaf 10y ago
There are so many unneeded tests being written I can't even begin to point them out. Here's an example: http://entulho.fiatjaf.alhur.es/notes/the-unit-test-bubble/ http://entulho.fiatjaf.alhur.es/notes/the-unit-test-bubble/
I've seen dozens of GitHub repos with a "tests/" directory that only contains tests for the constructor and ignores all the parts that should be tested. You don't need to test a constructor, this is stupid. If your constructor is not working none of the other tests will -- BUT HEY, your constructor is working, it is not hard to see it.