Dinomite-Studios / unity-azure-pipelines-tasks

Azure DevOps extension adding tools to build and deploy Unity 3D projects using Azure Pipelines
https://unitydevops.com/
MIT License
121 stars 49 forks source link

Fix Unity Test Task so it doesn't rely on specifying a UnityVersion #257

Closed derekfreed closed 5 months ago

derekfreed commented 5 months ago

I've been encountering a problem where my Unity Test task always gets this error which only goes away if I specify a UnityVersion. image

I discovered in PR #206 that there was a problem which was created in how tasks were getting the UnityVersion which would result in the UnityVersion having a non-null UnityVersionInfoResult object with an empty string for the UnityVersion.

Upon investigation it looks like this issue had already been resolved for some other tasks like the Build task but not for this Unity Test task.

My hope is that this will solve the root problem of issue #219 and address the looming problem noted in PR #206 as it relates to UnityTest task