vstest.executionengine.x86.exe not closing

前端 未结 6 1045
长情又很酷
长情又很酷 2020-12-23 13:29

I\'ve encountered an error when running unit tests. If I Debug the unit tests vstest.executionengine.x86.exe runs, then closes when the tests pass.

If I just run the

6条回答
  •  春和景丽
    2020-12-23 14:17

    I worked around this by using the following as a pre-build event on the affected test projects:

    for 64-bit:

    taskkill /F /IM vstest.executionengine.exe /FI "MEMUSAGE gt 1"
    

    or for 32-bit:

    taskkill /F /IM vstest.executionengine.x86.exe /FI "MEMUSAGE gt 1"
    

    This silently kills the execution engine before building the test project. The /FI "MEMUSAGE gt 1" stops the command (and therefore the build) from failing if the execution engine isn't running.

提交回复
热议问题