-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with UnityTestTask@1 - The "path" argument must be of type string. Received type undefined #219
Comments
@FejZa , have you seen this issue before? |
Upvote... same issue |
Looks to be the same thing. Looking into it. |
Any updates on this? |
NB: you should checkout your unity project in the pipeline... but you perhaps need to preserve the Unity Library files etc |
Found a workaround in the discord by TheRpgEngineer#6915 - task: UnityGetProjectVersionTask@1
name: projectversion
- task: UnityTestTask@1
name: unitytest
inputs:
unityProjectPath: $(System.DefaultWorkingDirectory)
testResultsPath: $(System.DefaultWorkingDirectory)/TestResults
unityVersion: $(projectversion.projectVersion)
testMode: editMode
testCategory: '!PlayMode'
- task: UnityCMDTask@1
name: unitycmd
inputs:
unityVersion: $(projectversion.projectVersion)
unityProjectPath: $(System.DefaultWorkingDirectory)
cmdArgs: -executeMethod FirstLight.Editor.EditorTools.BackendMenu.MoveBackendDlls |
@FejZa , it doesn't look like |
I've also updated the docs here: |
I’m seeing this same issue. Interestingly it works just fine on one Azure DevOps org and then fails in another with the exact same code 😐 |
So, trying to use the example in the docs, and I get the error:
The "path" argument must be of type string. Received type undefined
when trying to run the task.
This is the debug output from the task:
According to the docs, there isn't an input called
path
.According to the code, unity-test.ts does refer to
path
and it joins it withtask.json
. However, in the above debug output, you can see thecheck path
running which shows a full path to the task.json, so I don't know exactly what's going wrong here.I assume i'm not missing any required input parameter, and my build environment is fine. If i'm missing something, can you let me know what it is?
YAML:
The text was updated successfully, but these errors were encountered: