4

recently without any direct changes to tests solution this error started occurring during execution of VSTEST@2 task on my azure pipeline.

##[warning]DiscoveryMessage : Failed to load extensions from file 'D:\a\1\s\src\...\NUnit3.TestAdapter.dll'. Please use /diag for more information.

It isn't breaking tests discovery or execuction phase but it trashes my warning dialog and might make me omit some more important warnings. Have any of you faced similar problem so far? Tried to look for such error for some time now and couldn't find any solution.

Also I thought that maybe my vstest task tries to discover tests from TestAdapter but it shouldn't be the case with excluding clauses in definition

  - task: VSTest@2
    inputs:
      testSelector: 'testAssemblies'
      testAssemblyVer2: |
                    **\*.Tests.dll
                    !**\*TestAdapter.dll
                    !**\NUnit3.TestAdapter.dll
                    !**\obj\**
      searchFolder: '$(System.DefaultWorkingDirectory)'
      distributionBatchType: basedOnExecutionTime
      codeCoverageEnabled: true
cyman1998
  • 73
  • 1
  • 7
  • 2
    Did you ever get to the bottom of this, I am facing the same issue – CoderK Apr 13 '23 at 08:48
  • 1
    Couldn't find much more time to work on this but after quite some time I could correlate this with some packages update however didnt fix it yet. If you get to know anything more please let me know as well:) @coder – cyman1998 Apr 24 '23 at 20:28
  • I hate to just "bump," but I'm curious if you ever resolved this? We're experiencing it as well and your question here seems to be the only info about it anywhere... – DJ Grossman May 30 '23 at 15:03
  • Unfortunately this stuff keeps bothering me, didn't find enough time to dig further. – cyman1998 May 31 '23 at 20:11

0 Answers0