I’ve been working on a series of posts about authoring a new unit test plugin for Visual Studio 2012, but today my friend Matthew Manela, author of the Chutzpah test plugin, sent me a post he did a few days ago that discusses the main interfaces he had to use to make his plugin.
Matthews post does a great job of going through each of these interfaces, discussing what each is for and what he did for it in his plugin.
The Chutzpah test adapter revolves around four interfaces:
1. ITestContainer – Represents a file that contains tests
2. ITestContainerDiscoverer – Finds all files that contain tests
3. ITestDiscoverer – Finds all tests within a test container
4. ITestExecutor – Runs the tests found inside the test container
You can read the entire post here:
And if you want to see the source for his plugin, you can read it all here
(look for the VS11.Plugin folder on the left side):
Nice post Matthew! Thanks for providing it to the community.