Exact Magic Software

Microsoft Team System NUnit Adapter

We’ve prepared a free, open source adapter for NUnit designed to allow you to run Team System tests with NUnit, including nunit-console. This will let you inter-operate with source including Team System unit tests, as well as integrate Team System unit tests into your automated builds and scripts by literally running Team System tests under the NUnit framework.

This is provided as source making an NUnit addin. Place this addin in the appropriate folder depending on where you have NUnit installed, instructions on NUnit addin and extensibility are at http://www.nunit.com/index.php?p=nunitAddins&r=2.4.6.

This same addin is used within TestMatrix to provide the ability to run Team System unit tests, but we’re also providing it free to NUnit users of all kinds. TestMatrix is not required to use this addin. Source is also provided under the same license terms as NUnit itself, so that you can modify or work with this code as you see fit.

Inside the adapter, we’ve implemented a NUnit ’suite builder’, which is really the transformation logic that takes a compiled assembly and extracts the classes and methods that form unit tests. Along with basic unit testing, we’ve a simple, though working data driven test attribute along with a TestContext as used by Team System. This essentially allows you to open a table via ADO.NET and have the test execute once per row.

We’ve not big Team System test users ourselves, preferring NUnit, so this has more of an NUnit ‘feel’, adapting the Team System tests to fit in NUnit. Feedback, particularly on differences in semantics will be appreciated!

You can download it http://www.exactmagic.com/products/mstest/actions/download.html.

  Permalink |  Comments[7]


Recent Entries

 » Build 2687 Posted
 » New Unit Testing Book
 » Build 2293 Update Posted
 » Microsoft Team System NUnit Adapter
 » MS Team System Test Support


You can leave a response, or trackback from your own site.

7 Responses to “Microsoft Team System NUnit Adapter”

  1. Reflective Perspective - Chris Alcock » The Morning Brew #29 Says:

    […] Microsoft Team System NUnit Adapter - Exact Magic Software, release a free NUnit addin to run Team System unit tests […]

  2. Mikael Deurell : Hjälp oss att utveckla bättre TDD-stöd i Visual Studio! Says:

    […] Hjälp oss att utveckla bättre TDD-stöd i Visual Studio! Ok, jag erkänner… Jag är kär i NUnit, min dröm är att Visual Studio skall få samma högklassiga användargränssnitt (tydlig red/green, treeview och en skön vacker progressbar). Men vi har en bit att vandra… Det första steget är att hjälpa produktgruppen att förstå att detta är en viktig fråga för oss som bryr oss om TDD. Om ni håller med skulle jag uppskatta om ni går in och stöder denna fråga på https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=338783. Goda nyheter för NUnit älskare; det går idag alldeles utmärkt att kicka igång Microsoft Team System NUnit Adapter (en addin till NUnit) för att köra Team System tester i NUnit (Idag funkar den inte i 4.2.7 utan endast i 4.2.6 releasen av NUnit). [VS tester i NUnit] [Samma VS tester i… Visual Studio] […]

  3. СтройТермины Says:

    Строительный элемент, соединяющий два узла каркаса, фермы и т. п. Расроложен по диагонали замкнутого контура и обеспечивает жесткость конструкции.

  4. Kenny W. Says:

    Thanks for writing this great blog I really enjoyed.

  5. mcgregor Says:

    This does not appear to work with the latest NUnit 2.5.2; just and F.Y.I. and NOT a complaint. I happened to have 2.4.6 version downloaded previously and am tickled pink that it works great with that. I hope that you continue to move this plug-in forward as versions progress, but I appreciate the great work that went into making this happen at all! Thanks and take care!

  6. Bryan Says:

    Hi Gang,

    I’ve actually updated your source to compile against NUnit 2.5.2.

    Updated source is here: http://code.google.com/p/snippetware/source/browse/#svn/trunk/src/ExactMagic.MstsAdapter and binaries downloadable here: http://snippetware.googlecode.com/files/ExactMagic.MstsAdapter.zip

    Info about the project is here: http://www.bryancook.net/2009/10/mstest-nunit-adapter.html

    Feel free to roll the updates back into the source.

  7. flashy Says:

    Thx for your time

Leave a Reply