Azure DevOps Pipelines VsTest – The active test run was aborted. Reason: No suitable test runtime provider was found for any source in this run

huangapple go评论60阅读模式
英文:

Azure DevOps Pipelines VsTest - The active test run was aborted. Reason: No suitable test runtime provider was found for any source in this run

问题

I've recently run into this issue while building pipelines that were previously working and were unchanged. All of the data logs of old pipeline runs show that the VsTest version used for testing was 2.219.0, while the ones failing are 2.220.0. Not sure if there is anything in the new version causing things to break. The VsTest section of the yaml file of the pipelines looks like this:

      - task: VSTest@2
        displayName: Run VSTests
        inputs:
          testSelector: 'testAssemblies'
          testAssemblyVer2: |
            **\*test*.dll
            !**\*TestAdapter.dll
            !**\obj\**            
          searchFolder: '$(System.DefaultWorkingDirectory)'
          vsTestVersion: 'toolsInstaller'
          testRunTitle: 'run unit tests'
          platform: '$(buildPlatform)'
          configuration: '$(buildConfiguration)'

Has anyone ran into this lately?

I've tried changing vsTestVersion to 'latest', and it gets passed the error mentioned but it then fails to connect to a TestHost.

英文:

I've recently run into this issue while building pipelines that were previously working and were unchanged. All of the data logs of old pipeline runs show that the VsTest version used for testing was 2.219.0, while the ones failing are 2.220.0. Not sure if there is anything in the new version causing things to break. The VsTest section of the yaml file of the pipelines looks like this:

      - task: VSTest@2
        displayName: Run VSTests
        inputs:
          testSelector: 'testAssemblies'
          testAssemblyVer2: |
            **\*test*.dll
            !**\*TestAdapter.dll
            !**\obj\**
          searchFolder: '$(System.DefaultWorkingDirectory)'
          vsTestVersion: 'toolsInstaller'
          testRunTitle: 'run unit tests'
          platform: '$(buildPlatform)'
          configuration: '$(buildConfiguration)'

Has anyone ran into this lately?

I've tried changing vsTestVersion to 'latest', and it gets passed the error mentioned but it then fails to connect to a TestHost

答案1

得分: 5

你可能遇到了 Visual Studio 测试版本 17.6 中的这个错误:https://github.com/microsoft/vstest/issues/4516

解决方法 1 对我有效。

英文:

You might be hitting this bug in VS test v 17.6: https://github.com/microsoft/vstest/issues/4516

Workaround 1 worked for me.

huangapple
  • 本文由 发表于 2023年5月29日 20:38:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/76357457.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定