Any plans to emit Owner, Description and TestProperty for MSTest

May 19, 2011 at 12:40 PM

If you use MSTEST you can annotate your TestMethod with a set of Attributes named Owner, TestProperty and Description. These get emmited into the .trx file if you run MSTest.exe

For example:

- <UnitTest name="CreateUserRoleThrowsOnEmptyUserRole" storage="..." id="3710b1ce-1b45-bde5-96d9-2db9cfc2b4ae">
  <Description>Tests if CreateUserRole throws on empty user role.</Description>
- <Owners>
  <Owner name="owner" />
 </Owners>
  <Execution id="549060d6-8451-4680-a11e-561bac11263a" />
- <Properties>
-    <Property>
         <Key>TestCaseInternalTcId</Key>
         <Value>{0B51FBFA-B2E0-43A3-B5A9-B361B31FF6BA}</Value>
 </Property>
-   <Property>
       <Key>TestCaseRequirement</Key>
       <Value>2110</Value>
 </Property>
-   <Property>
  <Key>TestCaseName</Key>
  <Value>[UserManagementServiceTests] CreateUserRoleThrowsOnEmptyUserRole</Value>
  </Property>
  </Properties>
  <TestMethod codeBase="UserManagement.Service.Tests.DLL" adapterTypeName="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" className="UserManagement.Service.UserManagementServiceTests, UserManagement.Service.Tests, Version=1.0.0.0, Culture=neutral, PublicKeyToken=485c7b508f2591d7" name="CreateUserRoleThrowsOnEmptyUserRole" />
</UnitTest>
Are there any plan to support these attribute and emit them to the log file?
Thanks.
Georg
Coordinator
May 19, 2011 at 12:48 PM

At this point StatLight doesn't support exporting results into the TRX. There's previous dialog in a post today with some options. (one of the options being contributing trx support).

I believe (but will have to double check) that StatLight supports the Description attribute. This value is placed inside the "OtherInfo" property in the StatLight results.

I'm not opposed to supporting the other attributes. Would you please create a work-item in the issue tracker so we can keep track of this?

Thanks,