Assuming you are making an effort to do TDD or at least create unit tests once happy with a library, model, controller or just a script.<p>What methods do you employ to make sure the above stays in sync with the unit test.<p>Im sure, im not the first person to think about this, yet there is not any "best practices" I can find.<p>At present, im thinking.<p>db containing:<p>hash_of_the_file<p>name_of_the_unit_test<p>Then built into the test, or called ( not sure yet )<p>A way to check the db to make sure the hash_of_the_file still matches that in the db. Otherwise fail.<p>Any thoughts, or links would be well recieved.