title: How to include test category in visual studio test results
body: <p>How do I make sure the test categories I used in my unit tests are included in the test results. So that I could use the category to filter my tests or generate a html using trx2html grouped by the category.</p>
  
  <p><a href="https://i.stack.imgur.com/fXGSs.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fXGSs.jpg" alt="enter image description here"></a></p>
  
  <pre><code>[Trait("Category", "1")]
  public class MyFeature1Tests
  
  [Trait("Category", "2")]
  public class MyFeature2Tests
  </code></pre>
  
  <p>I could see the tests grouped by the category in the visual studio test explorer. But it is not possible in the test results (.trx) file?</p>
  
  <p><a href="https://i.stack.imgur.com/c9Qqx.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c9Qqx.jpg" alt="enter image description here"></a></p>