Add comment about code coverage support in standalone.

pull/219/head
Tim 2023-04-20 01:02:01 -04:00
parent 178a747ba3
commit 8a62cebb67
2 changed files with 6 additions and 1 deletions

View File

@ -116,6 +116,9 @@ foreach ( $platform in ${env:TEST_PLATFORMS}.Split(";") )
if ( ( $TEST_EXIT_CODE -eq 0 ) -and ( "$platform" -eq "standalone" ) )
{
# Code Coverage currently only supports code ran in the Editor and not in Standalone/Player.
# https://docs.unity.cn/Packages/com.unity.testtools.codecoverage@1.1/manual/TechnicalDetails.html#how-it-works
$TEST_OUTPUT = Start-Process -NoNewWindow -Wait -PassThru "$UNITY_PROJECT_PATH\Build\UnityTestRunner-Standalone.exe" -ArgumentList "-batchmode -nographics -logFile $FULL_ARTIFACTS_PATH\$platform-player.log -testResults $FULL_ARTIFACTS_PATH\$platform-results.xml"
# Catch exit code

View File

@ -115,7 +115,9 @@ for platform in ${TEST_PLATFORMS//;/ }; do
echo "###########################"
echo ""
# Not sure how to get code coverage with this method.
# Code Coverage currently only supports code ran in the Editor and not in Standalone/Player.
# https://docs.unity.cn/Packages/com.unity.testtools.codecoverage@1.1/manual/TechnicalDetails.html#how-it-works
xvfb-run -a -e /dev/stdout "$UNITY_PROJECT_PATH/Build/UnityTestRunner-Standalone" \
-batchmode \
-nographics \