Additional log output on NUnit test fail
问题 Whenever an NUnit test fails during its execution (i.e. not when using Assert.* ), I want to log additional information (I'm writing web tests and I am especially interested in the web page's current DOM). How to specify a global exception handler in NUnit which is able to log additional information on NoSuchElementException s - test should still fail of course. 回答1: You could write an NUnit event listener addin that logs the information. See http://www.nunit.org/index.php?p=nunitAddins&r=2.6