Tuesday, April 17, 2018

Error: The active Test Run was aborted because the execution process exited unexpectedly

Hi everybody.

Long time I haven't interesting cases, but few days ago I was face with interesting issue.

Prerequisite:
-VNext builds with execute unit tests.



In one day one build definition become failed.
It was interesting because half of dev team has same error.
But in another half of team test was successful.

Seems everything was fine, but in the end of tasks I saw this error:

##[error]Error: The active Test Run was aborted because the execution process exited unexpectedly. The test execution process crashed while running the tests. To investigate further, open file:///C:/Users/USER_NAME/AppData/Local/CrashDumps/vstest.executionengine.exe.17076.dmp file in Visual Studio and choose "Debug in mixed mode".

 To tried many variants how to resolve issue, I found one reason:
Dev was using VS 2017. But TFS was version 2015. As result tasks was using old platform.
I've created custom script, which I pointed to vstest-console.exe from 2017 install directory and it become work.

I think this pattern will be work on the future:

If you have such error, please make sure that version of soft equal version that are using developers.

Have a good day!

No comments:

Post a Comment