I'm executing a large sequence of many fixtures with tests within them. Within each test is code to log any errors to a file based on NUnit attributes. Once the execution is complete, the file contains all of the errors in a nice format to send off to the consultants.
First of all, I need a hook to delete the previous copy of the file so that the file can be freshly generated. If this were a series of tests in a single fixture, it would be a chip-shot - put it in the fixture setup. But I need these dozens of test fixtures to share a common file, so putting it in the fixture setup doesn't work.
Second of all, this all just feels like reinventing the wheel...if there's some awesome NUnit standard for shunting results to an alternate output, I'd love to hear about that.
TIA.