<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : How tp cleanup after running Unit Tests</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : How tp cleanup after running Unit Tests</description>
  <pubDate>Sat, 11 Apr 2026 11:09:16 -700</pubDate>
  <lastBuildDate>Thu, 12 Jul 2007 16:41:23 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=229</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>How tp cleanup after running Unit Tests : DevForce does not support your...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=229&amp;PID=508#508</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 229<br /><strong>Posted:</strong> 12-Jul-2007 at 4:41pm<br /><br /><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">DevForce does not support your transactional approach.&nbsp; We do transactional saves as part of the SaveChanges method, but we do not support the ability to start a transaction, do a whole bunch of database operations, and then rollback the entire set of database operations.&nbsp; According to our CTO, supporting long running transactions of this type is a bad idea.&nbsp; Instead he believes that you should start and complete transactions as quickly as possible.</SPAN></FONT><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p>&nbsp;</o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I agree with you that CheckPointing is not the ultimate answer.&nbsp; While Checkpointing may be a great solution the vast majority of the time, a big problem is that if the application crashes, there is no way to undo the database changes.<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Our current strategy is to develop a “Cleanup” test that restores the database by programmatically applying fixes to the database.&nbsp; For example, we may delete all employees with an ID greater than 1000 after first deleting all of their orders and order details.<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">At some point in the future, we may develop a more robust solution by using database restore.<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 16:41:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=229&amp;PID=508#508</guid>
  </item> 
  <item>
   <title>How tp cleanup after running Unit Tests : I&amp;#039;m starting to learn the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=229&amp;PID=507#507</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=20" rel="nofollow">Customer</a><br /><strong>Subject:</strong> 229<br /><strong>Posted:</strong> 12-Jul-2007 at 4:40pm<br /><br />I'm starting to learn the IdeaBlade ORM.&nbsp;&nbsp; I'm trying to get some existing NUnit tests running.&nbsp; In our current application we begin a transaction during SetUp, and then roll back the transaction during a TearDown method.&nbsp; This ensures that the unit test database's contents do not ever get modified.<BR><BR>I'm having difficulty figuring out how to do this with IdeaBlade.&nbsp; CheckPoints do not seem to be the answer.&nbsp; Any insights you could provide will be greatly appreciated.]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 16:40:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=229&amp;PID=507#507</guid>
  </item> 
 </channel>
</rss>