﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Sudheer Palyam / Article Discussions / Article Discussions by Author  / An Introduction to Test Driven Development / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 24 May 2012 12:39:15 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: An Introduction to Test Driven Development</title><link>http://www.sqlservercentral.com/Forums/Topic250107-276-1.aspx</link><description>&lt;P&gt;This "simple" example of an uppercase stored proc is a very good choice for another reason: testing just one string will not be enough. A company with users in more than one country would need to use test data in the languages of all its major customers - including those with character sets that may not even have the concept of uppercase. Collecting realistic test data could be a major effort in itself, but once that is done a TDD environment would have no problem processing it.&lt;/P&gt;&lt;P&gt;Although I can see the benefit of formal TDD, it does add a considerable overhead in tools, training, storage, reporting and the like. It assumes that the complex infrastructure that was in place during the initial development will still be there when version 2 comes along. This may not be the case for small to medium-size projects. Also, when the focus shifts to testability, what happens to the other "ilities" like scalability and maintainability?&lt;/P&gt;</description><pubDate>Sun, 12 Feb 2006 06:52:00 GMT</pubDate><dc:creator>mosaic-287947</dc:creator></item><item><title>RE: An Introduction to Test Driven Development</title><link>http://www.sqlservercentral.com/Forums/Topic250107-276-1.aspx</link><description>&lt;P&gt;Don't forget these two resources:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;MBunit (does everything NUnit does and more): &lt;A href="http://www.mertner.com/confluence/display/MbUnit/MbUnit+Home"&gt;http://www.mertner.com/confluence/display/MbUnit/MbUnit+Home&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;TestDriven.net (Testing framework for Visual Studio): &lt;A href="http://www.testdriven.net"&gt;http://www.testdriven.net&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I like to use MBUnit to run the tests in a console app that brings up a web page with the results of the test run. I haven't used TestDriven.net much yet but I plan on getting into it when I finish my degree next month and have some time to mess with it more seriously.&lt;/P&gt;</description><pubDate>Thu, 09 Feb 2006 08:01:00 GMT</pubDate><dc:creator>Tatsu</dc:creator></item><item><title>RE: An Introduction to Test Driven Development</title><link>http://www.sqlservercentral.com/Forums/Topic250107-276-1.aspx</link><description>I looked at tsqlunit. With VS2005, I think it is easier to use NUnit to test our stored procedures. Here's what we've done (VB.NET code)...1) Created an NUnit test fixture that utilizes SWC (Services Without Components) and transactions. This works for us because all of our development PCs are on Windows XP. Here's the basic transaction class.Imports NUnit.FrameworkImports System.TransactionsImports TrulinX.SAPublic MustInherit Class TransactionFixture    Private tx As CommittableTransaction    &amp;lt;SetUp()&amp;gt; _    Public Sub Setup()        tx = New CommittableTransaction        ' Make the transaction the ambient transaction.        ' ADO.NET and COM+ will automatically participate        ' with this ambient transaction.        Transaction.Current = tx    End Sub    &amp;lt;TearDown()&amp;gt; _    Public Sub TearDown()        tx.Rollback()    End SubEnd Class2) All test cases that use the database inherit from TransactionFixture. This provides automatic rollback capability.3) It's still a lot of work to set up test data. But we don't have to worry about cleaning it up because all the work is automatically rolled back.4) Refactor, refactor, refactor! The same Insert statement may be useful in 20 different tests. Don't copy it. Centralize it in a utility module.Our inspiration came from "Test-Driven Development in Microsoft.NET", by James Newkirk and Alexei Vorontsov. Additional inspiration came from the many bloggers who wrote about the amazing new features in Visual Studio 2005.</description><pubDate>Thu, 09 Feb 2006 07:04:00 GMT</pubDate><dc:creator>hurcane</dc:creator></item><item><title>An Introduction to Test Driven Development</title><link>http://www.sqlservercentral.com/Forums/Topic250107-276-1.aspx</link><description>Comments posted to this topic are about the content posted at &lt;A HREF="http://www.sqlservercentral.com/columnists/sPalyam/anintroductiontotestdrivendevelopment.asp"&gt;http://www.sqlservercentral.com/columnists/sPalyam/anintroductiontotestdrivendevelopment.asp&lt;/A&gt;</description><pubDate>Wed, 11 Jan 2006 17:42:00 GMT</pubDate><dc:creator>cutespn</dc:creator></item></channel></rss>
