Baron Schwartz, author of High Performance MySQL, got some interesting comments on his previous article about unit testing Maatkit, including echoes of my own conversion to the unit-testing religion. One of the objections he had heard a lot about unit-testing is how it’s impossible to test code that talks to a database. “It’s too hard,” they say. “Oh, it’s easy to test a module that calculates a square root, but a database? Way too much work!”
Comments
YeFFreY replied ago:
only very basic things...
from the article : "Never let a test connect to a production database." -> does someone do that ??? really ??
phpimpact replied ago:
Oh yes, and they even use FTP to transfer files...
YeFFreY replied ago:
and a keyboard to enter caracters ? maybe they even look at the screen to read them ??
seriously, testing using PRODUCTION database is really reckless...
Raphael Stolt replied ago:
Why you get so hung-up by a 'filling sentence'?
Voters For This Link (8)
Voters Against This Link (4)