Link Details

Link 105293 thumbnail
User 228496 avatar

By raphael76
via xaprb.com
Published: Aug 20 2008 / 17:19

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!”
  • 9
  • 4
  • 984
  • 477

Comments

Add your comment
User 240505 avatar

YeFFreY replied ago:

0 votes Vote down Vote up Reply

only very basic things...
from the article : "Never let a test connect to a production database." -> does someone do that ??? really ??

User 287383 avatar

phpimpact replied ago:

0 votes Vote down Vote up Reply

Oh yes, and they even use FTP to transfer files...

User 240505 avatar

YeFFreY replied ago:

0 votes Vote down Vote up Reply

and a keyboard to enter caracters ? maybe they even look at the screen to read them ??
seriously, testing using PRODUCTION database is really reckless...

User 228496 avatar

Raphael Stolt replied ago:

0 votes Vote down Vote up Reply

Why you get so hung-up by a 'filling sentence'?

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (8)



Voters Against This Link (4)