-
Notifications
You must be signed in to change notification settings - Fork 285
Closed as not planned
Closed as not planned
Copy link
Description
Description
I recently updated MSTest adapter to version 2.2.5 from 2.2.3 and noticed following change in behavior of results of data driven tests.
There are results for individual data rows, but they are missing parent test. Therefor results arent structuralized and I cant tell which data row result belong to which test.
I would like to know if this is a bug or expected behavior.
Steps to reproduce
- Create simple test project targeting .net framework 4.8 or .net core 3.1
- Get MSTest framework and adapter 2.2.5+
- Create these simple data driven tests:
[TestMethod]
[DataRow("1", DisplayName = "A")]
[DataRow("2", DisplayName = "AA")]
public void Test1(string test)
{
}
[TestMethod]
[DataRow("1", DisplayName = "B")]
[DataRow("2", DisplayName = "BB")]
public void Test2(string test)
{
}
- Run tests via cmd with /Logger:trx
- Repeat steps but this time with MSTest Framework and adapter version 2.2.3
- Compare trx files or console outputs
Expected behavior
This is result structure with adapter version 2.2.3 (sorry its not in English but the idea should be clear)
This is how trx file looks:
Actual behavior
This is result structure with adapter version 2.2.5 (sorry its not in English but the idea should be clear)
This is how trx file looks:
Environment
Windows 10
Visual studio 2019
vs.console 16.11
MSTest adapter/framework 2.2.5+
ChristoWolf, nixdagbibts and cbersch