I agree with James on what he is trying to achieve. I use multiple asserts in fixtures. I would love to be able to mark an assert to continue on failure but to obviously fail the test. I feel the code in the test class would just look a little cleaner and be easier to maintain. But I'll be the first to say that that is a preference that not everyone would agree with ;-).
Andrew Stopford wrote: > Hi, > > I wanted to raise an idea from James Avery about multiple asserts per > fixture with addtional attribute and assert markers. > > http://dotavery.com/blog/archive/2006/09/25/21263.aspx > > I have suggested to James that combintional test could help where your > looking for mutiple inputs, however Jamies idea is to take several asserts > in one fixture to let you conduct several tests. It's an interesting idea > but one I am not sure about in that mbunit like other frameworks stops at > the point of failure so that you fix that before re-running your tests again > and that makes sense to me. Jame's idea is that if you get a fail then if > the marker allows it you carry on but then fail the test when the run > completes (and report the fail(s). I'd welcome your thoughts on this, would > it be useful, does it make sense? > > Andy > > ------=_Part_119189_28917887.1159953102005 > Content-Type: text/html; charset=ISO-8859-1 > X-Google-AttachSize: 1659 > > <div>Hi,</div> > <div> </div> > <div>I wanted to raise an idea from James Avery about multiple asserts per > fixture with addtional attribute and assert markers.</div> > <div><span style="mso-ansi-language: EN-CA"><span lang="EN"><span > style="mso-spacerun: yes"></span></span></span> </div> > <div><span style="mso-ansi-language: EN-CA"><span lang="EN"><span > style="mso-spacerun: yes"><a > href="http://dotavery.com/blog/archive/2006/09/25/21263.aspx">http://dotavery.com/blog/archive/2006/09/25/21263.aspx</a></span> > </span></span></div> > <div><span style="mso-ansi-language: EN-CA"><span lang="EN"><span > style="mso-spacerun: yes"></span></span></span> </div> > <div><span style="mso-ansi-language: EN-CA"><span lang="EN"><span > style="mso-spacerun: yes">I have suggested to James that combintional test > could help where your looking for mutiple inputs, however Jamies idea is to > take several asserts in one fixture to let you conduct several tests. It's an > interesting idea but one I am not sure about in that mbunit like other > frameworks stops at the point of failure so that you fix that before > re-running your tests again and that makes sense to me. Jame's idea is that > if you get a fail then if the marker allows it you carry on but then fail the > test when the run completes (and report the fail(s). I'd welcome your > thoughts on this, would it be useful, does it make sense? > </span></span></span></div> > <div><span style="mso-ansi-language: EN-CA"><span lang="EN"><span > style="mso-spacerun: yes"></span></span></span> </div> > <div><span style="mso-ansi-language: EN-CA"><span lang="EN"><span > style="mso-spacerun: yes">Andy</span></span></span></div> > > ------=_Part_119189_28917887.1159953102005-- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
