The Simple, Lightweight Testing
Framework for Microsoft SQL Server
Failed Files
There are certain conditions that will make a whole test file fail. Execution will stop in the middle of the file for things like an incorrect table owner.
 
The framework deals with this by writing a record to the TstFileResults table with Completed = 0 when the file begins execution. If the whole file runs, it updates that value to 1 at the end of the script. That way, any records with Completed = 0 indicate files that failed part-way through.