This is a mirror of official site: http://jasper-net.blogspot.com/

Writing a Visual Studio 2012 Unit Test Adapter

| Wednesday, August 1, 2012
Visual Studio 2012 comes with an extensible Unit Test Framework. Many of your favorite Unit Test frameworks (xUnit.Net, nUnit..) already have built adapters to Visual Studio.  Peter Provost maintains a list of adapters here.  If you have another unit test framework you like, you can build an adapter super easy. In this article, I will walk you through the steps required to build a Visual Studio 2012 Unit Test Adapter.

For the purposes of this discussion, I am going to write a Unit Test Adapter for XML files. The XML file will contain tests in the following format.

Inline image 1

After we install the new XML Test Adapter, we will see the following status in Test Explorer.

Inline image 2

Step 1: Create a Discoverer

Inline image 3

QR: Inline image 4

Posted via email from Jasper-net

0 comments: