You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start time and End time are set to current timestamp when they are not provided by the adapter. XUnit does not provide that information, it only provides duration, so the start and end time timestamps are incorrect. We could possibly calculate start time from duration, but then it would be hard to distinguish from the case where the adapter provided correct start time and incorrect duration. Or incorrect start time and correct duration, in both cases the numbers would not add up.
Steps to reproduce
Just generate trx file with following command:
dotnet test --filter Category=Test --logger:trx;LogFileName=results.trx
Environment
In trx file I can see following sections: duration, startTime, endTime. I couldn't figure out how the time is calculated?
![trx](https://user-images.githubusercontent.com/41098503/107042552-f409ad00-67d2-11eb-928b-c32358d718b7.png)
I found these fields in code: https://github.com/microsoft/testfx/blob/ec18af6f90c272f68f48d9d0b94c71b8e276c7a0/src/Adapter/MSTest.CoreAdapter/Execution/TestExecutionManager.cs#L376
https://github.com/microsoft/testfx/blob/ec18af6f90c272f68f48d9d0b94c71b8e276c7a0/src/Adapter/MSTest.CoreAdapter/Execution/TestMethodInfo.cs#L159
The text was updated successfully, but these errors were encountered: