Microsoft

Smart Unit Tests - Test to Code Binding, Test Case Management

Apr 18, 2015Pratap Lakshman
Smart Unit Tests - Test to Code Binding, Test Case Management
SummaryAI, from the source post

This post details the mechanism by which IntelliTest (formerly Smart Unit Tests) manages generated unit tests. It explains the use of Pex custom attributes (PexClass, TestMethod, PexGeneratedBy) for test-to-code binding. The post describes how the testing engine identifies previously generated tests by hashing their source code (after whitespace trimming) and uses this to prevent duplicate emissions and delete irrelevant tests when the code-under-test changes. The generated unit tests and parameterized unit test are placed in the same assembly for validation.

More from the Visual Studio Unit Testing Framework trail