Smart Unit Tests - Test to Code Binding, Test Case Management
Apr 18, 2015Pratap Lakshman

Summary
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.