You could add some instrumentation during test TearDown. Check TestContext.CurrentContext.Outcome to determine whether the test failed.
That said, wouldn't it be easier to debug it on the machine that fails or add more logging output? Jeff. -----Original Message----- From: Mark Kharitonov [mailto:[email protected]] Sent: Thursday, November 26, 2009 3:16 PM To: MbUnit.User Subject: MbUnit How to get a minidump on a unit test failure? Hi. I have a test that sometimes fail and I cannot reproduce the failure on my machine. I would like to get the application minidump when the particular test fails. Do I have to surround the offending Assert with tr-catch (the gallio asertion exception, whatever it is) or is there a better place to insert the dump generating code? Because I would really like to avoid the situation where we enclose each Assert in try- catch. Thanks. -- You received this message because you are subscribed to the Google Groups "MbUnit.User" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/mbunituser?hl=en. -- You received this message because you are subscribed to the Google Groups "MbUnit.User" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/mbunituser?hl=en.
