unity-azure-pipelines-tasks icon indicating copy to clipboard operation
unity-azure-pipelines-tasks copied to clipboard

Running Tests should not fail

Open tamademicheli opened this issue 6 years ago • 2 comments

I use for my CI Pipeline this for running the tests and then publish them. but i always get this error, and i have to ignore it, and the build is marked as partially successful.

##[error]The Unity build task finished without results. Check editor logs for details.

Short term solution (if it is easy to implement, else go for the longterm)

  • if there are test parameters , don't check the build path for content

Long term solution

  • on the advanced section, add the necessary checkbox and text widgets to support testing

image

tamademicheli avatar Jul 26 '19 11:07 tamademicheli

Hi @tamademicheli, thanks for the input. This is pretty useful and interesting. Could you share some more how you are using the task for testing? Because I am actually planning to add a separate "Task Runner" Task to the extension instead of making it part of the Unity Build Task. Your input is much appreciated here.

FejZa avatar Jul 27 '19 14:07 FejZa

Hi Sorry for the late answer.

I just use the advanced-> custom like this -stop -runTests -batchmode -logFile $(Build.SourceBranchName)-$(Build.BuildNumber).log -testPlatform editmode -testResults $(Agent.BuildDirectory)\s\MyProjectName-$(Build.BuildNumber)-EditMode-TestResults.xml

then i add a image

Let me know if you need more insight, or more info about how we do use your extension.

tamademicheli avatar Jul 30 '19 09:07 tamademicheli