The drawback to doing this is that causes your application code to lose cohesion. Instead of doing just one job, your code is now doing two jobs: making your application work and helping to test the application. This mixture of jobs is one straw on the camel's back that makes the application code just that much harder to understand.
Sort: