Using MSTest.Framework (1.3.2) and the following code:
[TestMethod]
[TestCategory("Instructor chosen Grading Category Goes Here")]
public void Basic_Fail_2()
{
bool correctAnswer = false;
Assert.IsTrue(correctAnswer, "This message will be displayed when the test fails");
}
I can run the tests from the command line to generate a .TRX / .XML file that includes the following
Hello!
Using
MSTest.Framework
(1.3.2) and the following code:I can run the tests from the command line to generate a .TRX / .XML file that includes the following
However, when using MSTest V2 the .TRX file includes only this:
(Note the missing
TestCategory
element, and therefore the missingTestCategoryItem
child element(s).)I'd love to be able to 'tag' tests using the
TestCategory
attribute and have that attribute be accessible in the resulting .TRX file