When/How to Unit Test CRUD applications?

Unit testing is about testing discrete units of code – a single method, no more.

The moment you go into CRUD, you are talking about testing network, IO, database and other things – this is beyond what unit testing is about. In this case, this is called integration testing (you are testing how your code integrates with other code/systems).

There is place for both types of testing (and other types – regression, performance etc…) in any software project, CRUD application or not.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)