When a test fails, I want to run a function (that searches for a certain string in a database and then greps for that string in a bunch of files) and output the results - is that possible?
For context, the test searches for two columns in a database. When it fails, I want to know if the string appears in one of the columns, and I also want to search a file for the string as well.