Search Unity

No test results XML after pipeline run

Discussion in 'Testing & Automation' started by cacolukia, Sep 1, 2021.

  1. cacolukia

    cacolukia

    Joined:
    Sep 23, 2012
    Posts:
    5
    Hello,

    I have created a build pipeline in Azure DevOps. It calls my selfhosted build server via Powershell script, which executes tests run command:
    "<path>\Unity.exe" -platform editmode -runTests -batchmode -logFile "stdout-tests.log" -projectPath <projectpath> -testResults "test_results.xml"

    The problem with this is that while running the script from build server works flawlessly, running pipeline ends with Unity exit code 3 and no test results XML file created.

    I have noticed that output log in pipeline-run contains following:
    Multiple unexpected errors happened while running tests.
    ...
    Uploading Crash Report

    However when I run the script locally the XML is produced, even though some tests fail.

    EDIT:
    Found out a workaround. Changing account on VS Agent from SYSTEM NETWORK to local Admin resolves the issue. I don't think it's a good practice from security reasons, so I'm still looking for proper resolution.
     
    Last edited: Sep 1, 2021
  2. Martin-Pixion

    Martin-Pixion

    Joined:
    Sep 17, 2019
    Posts:
    1
    I'm having the same issue at the moment, but I'm already using the admin account. Any other ideas on how to fix this?
     
    lerpenbe likes this.