Forum Discussion

DVogler's avatar
DVogler
New Contributor
7 months ago
Solved

Log.Message("String") raises "The object does not exist" on Azure pipeline

We are getting "The object does not exist" when trying to log only for some files and for some tests it only affects them when running as part of a longer run of tests, not when that test is run by i...
  • DVogler's avatar
    DVogler
    6 months ago

    Thank you very much. May do that.

    For now, I have found a workaround: run each test in a different instance of the VSTest task

    - ${{ each test in parameters.tests }}:
      - task: VSTest@3
          testFiltercriteria: Name=${{ test }}
          ...
        condition: always()

    Requires a bit of duplication since you need to add it to both the project and yaml, but comes with a few unexpected benefits as well.