More Unit Testing articles…

This is as much a benefit for anyone starting to do unit testing, and for me to remember…

Introduction to Test-driven development with NUnit and the NUnit-Addin – http://weblogs.asp.net/rosherove/articles/28511.aspx (By Roy Osherove).

10 Ways to Make Your Code More Testable – http://www.theserverside.net/articles/showarticle.tss?id=10WaysTestableCode (Via TheServerSide).

Testing ASP.NET Applications with NUnitASP and NUnit- http://www.theserverside.net/articles/showarticle.tss?id=TestingASP (Via TheServerSide).

Unit Testing in .NET – http://www.theserverside.net/articles/showarticle.tss?id=UnitTesting

And here’s something that I thought might be interesting…

Managing .NET Development with NAnt – http://www.theserverside.net/articles/showarticle.tss?id=NAnt

I remember last year there was a guest lecturer (Andy Marks from ThoughtWorks) who introduced us (students of the CSE3420 – Developing Graphical WWW Apps in Java) to JAnt and JUnit. Though they are Java tools, they do have their .NET equivalents, which are NAnt and NUnit.

What is NAnt you ask? (This is assuming you haven’t clicked on that website yet) It is an automated build tool, of sorts… You define what you want to test through an XML file. You’re probably now thinking, hang on… A build tool? But I have my precious Visual Studio.NET!!!

Fine, but there are still developers out there that actively code their .NET code using Notepad, or a diffrent text editor (such as my personal favourite, Textpad). That’s fine, and you know what? NAnt makes their life easier.

I’d recommend reading the article for more info.!

There’s more URLs, but I think that’s enough articles for now… If you want to find out more, the best website to visit is: http://www.extremeprogramming.org

2 Responses to “More Unit Testing articles…”

  1. Keith Knight Says:

    Hey Will,

    Don’t be discouraged from diving into NAnt just because you use Visual Studio – it’s not just for the notepad guys! It proves a truckload more power and flexibility than the VS.NET project system. For example you can do things like:

    - Automatically check all your code out of your source control system and build it
    - Run your NUnit tests
    - Say you have three customers using your software, each with individual configuration info, you can have your build process spit out three builds configured and ready to xcopy deploy.
    - You can have NAnt zip these up for you or use something like WiX to create a nice installer.

    Check out the task reference for some of the things you can do with it: http://nant.sourceforge.net/help/tasks/index.html

  2. William Luu Says:

    Cheers Keith, it’s something i’ll definately check out.

    If not, i’ll probably just end up looking at MSBuild which I believe does something quite similar. (Eg: Make file, etc…)

    I spend my time away from VS in textpad anyway :) [Sometimes text just looks clearer in there compared to VS.NET 2002 that i'm using at work...]