Skip to content

HTML logger sometimes shows error when using multiple vstest runner in parallel #15404

@informatorius

Description

@informatorius

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions