Sounds like a nice feature. If and when you get to it, do you think it will be possible to add assertion failure hook support?
On 27/11/2009, at 23:19, Jeff Brown wrote: > There is no general-purpose assertion hook mechanism in place at > this time. > > I have considered adding related features like automatic breakpoint > on assertion failure, etc. > > Jeff. > > From: Mark Kharitonov [mailto:[email protected]] > Sent: Friday, November 27, 2009 11:20 AM > To: [email protected] > Subject: Re: MbUnit How to get a minidump on a unit test failure? > > On second thought, TearDown is not good enough, because the stack > trace is already unwind. > > What I need is wrap each Assert statement in a try-catch > (AssertException) where the catch statement > creates the minidump and rethrows. I can do it manually for the > specific tests which fail, because there are > just a few of them. Or maybe there is already a way to register a > hook within the MbUnit framework to be invoked from > within the Assert when the Assert is about to fail? > > Thanks. > > P.S. > Am I trying to invent a wheel here and MbUnit already has a way to > assist in debugging the hard to reproduce failures? > > On 27/11/2009, at 03:33, Jeff Brown wrote: > >> 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 mbunituser >> [email protected]. >> For more options, visit this group at http://groups.google.com/ >> group/mbunituser?hl=en. >> >> > > ====================================================================== > ==== > There are two kinds of people. Those whose guns are loaded and > those who dig. > (The good, the bad and the ugly). > So let us raise our cups for our guns always be loaded. > > > > -- > > 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 mbunituser > [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 mbunituser > [email protected]. > For more options, visit this group at http://groups.google.com/ > group/mbunituser?hl=en. ======================================================================== == There are two kinds of people. Those whose guns are loaded and those who dig. (The good, the bad and the ugly). So let us raise our cups for our guns always be loaded. -- 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.
