Visual Studio 2012 Test Explorer extension with more information

As part of some research, I am writing an extension for the Microsoft Visual Studio Unit Testing Framework with a custom type of testing, as described here . I created a custom attribute, but I want to show additional information in Test Explorer about the completed test from my custom attribute.

I was also wondering if there is a way to show information about all unit tests (so that from my custom attribute, as well as from Visual Studio Unit Testing Framework attributes) that have been executed in the past. Therefore, I can show information from these tests on graphs, etc.

Does anyone know a good solution to achieve this?

UPDATE 1 I mean something like this:

enter image description here

+8
c # visual-studio-2012
source share
2 answers

Console.WriteLine completed the task ... The user can press "output" and see the result ...

+4
source share

Are you trying to show additional test symptoms in Test Explorer? If so, you can use the supported Featured Group added in Visual Studio 2012 Update 1 (more details at http://blogs.msdn.com/b/somasegar/archive/2012/11/26/visual-studio- 2012-update-1-now-available.aspx , download from http://www.microsoft.com/en-us/download/details.aspx?id=35774 ).

In short, you can decorate your test with something like

[TestMethod] [TestCategory("SpecialTestType")] [TestProperty("XXX","YYY")] public void TestMethod1() { } 

After re-discovering this test, select "Group by Feature" (the toolbar in the TextExplorer tool window) to group tests based on your properties (for example, SpecialTestType, XXX).

+7
source share

All Articles