Smart Unit Test for Smart Developers

One of my nightmare on development of new application is the creation of unit tests which cover all the code paths and provide a code coverage of more than 98%. Creation of unit tests matching all code paths and binding the same with proper test data occupy most of our time. This may not be the case with those who use unit test frameworks instead of using Visual Studio. As a Microsoft technology lover, it is hard for me to switch to any other unit test platform.

Now, MS is addressing my pain point by introducing the Smart Unit Test as part of Visual Studio 2015. Smart Unit test feature explores the .NET code and generate test data along with set of unit tests. Smart Unit Test perform a case analysis on each statement to generate unit tests, which provide maximum code coverage.

Creation of smart unit test as simple as opening a class file, right click on the method for which you need to generate the unit test and select Smart Unit Tests option from context menu. This will generate set of unit tests along with test data. We can save the unit tests and test data as a regression suit for future regression testing.

Smart Unit for Smart Developers

Smart Unit for Smart Developers

Advertisements

About ambilykk

I am a Technology Evangelist on Microsoft Technologies. I am carrying the passion on Microsoft technologies specifically on web technologies such as ASP .Net and Ajax. My interests also include Azure and Visual Studio. Technology adoption and learning is my key strength and technology sharing is my passion.
This entry was posted in Visual Studio 2015 and tagged , . Bookmark the permalink.

2 Responses to Smart Unit Test for Smart Developers

  1. pvlakshm says:

    Ambilykk, I would love to know more about your experiences using Smart Unit Tests.
    – @pvlakshm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s