Bulk edit of unit test properties  
Author Message
Aaryant





PostPosted: Visual Studio Team System - Testing, Bulk edit of unit test properties Top

Hi,

Is there any way in VSTT to bulk edit unit test porperties. Suppose I've 10 unit tests and I want to modify the Owner of all tests to some value "Name". I don't want to do it one by one for all of them. Is there any way for such type of bulk edit

-Aaryan



Visual Studio Team System28  
 
 
Boris Vidolov MSFT





PostPosted: Visual Studio Team System - Testing, Bulk edit of unit test properties Top

Hi Aaryan,

Unfortunately, this is not supported yet. The good thing about unit tests, however, is that all of their properties are stored in the source file as attributes. Thus, if you want to set the owner for all test methods in a class you could simply replace "[TestMethod]" attribute with "[Owner(....)][TestMethod]" as a simple text replacement in the editor. I know that this is not the best user experience, but it saves time.

Regards,

Boris



 
 
Aaryant





PostPosted: Visual Studio Team System - Testing, Bulk edit of unit test properties Top

Boris,

I was aware of that way of doing it. But as you already mentioned this is not the best user experience. But as required behavior is not currently supported so I've to go with this workaround.

Thanks,

Aaryan