-
Notifications
You must be signed in to change notification settings - Fork 346
Description
VSTest version 17.14.0 (x64)
When using multiple vstest runner in parallel and using html logger then sometimes it shows error about xml file already ins use.
I run vstest in parallel processes
vstest.console MyUnitTestDll1.dll --logger:console;verbosity=quiet --logger:html;LogFileName=DotnetTestLog1.html --logger:trx;LogfileName=DotnetTestLog1.trx
vstest.console MyUnitTestDll2.dll --logger:console;verbosity=quiet --logger:html;LogFileName=DotnetTestLog2.html --logger:trx;LogfileName=DotnetTestLog2.trx
vstest.console ...
When one process finishes it seems to have a temporary xml result file: "TestResult_USERNAME_MACHINENAME_DATETIMESTAMP.xml"
If two processes finish in the same second then they try to use the same xml file. Because the temporary filename date time stamp is only accurate by seconds. That leads to access violation file is already used by another process.
Current Result: The html file is not created from xml file
Expected Result: The html file is created from xml file