Skip to content

Commit

Permalink
Slightly improve test logging, since our xcode->junit conversion is c…
Browse files Browse the repository at this point in the history
…urrently broken
  • Loading branch information
cmsj committed Aug 7, 2024
1 parent 00c8eab commit d75687d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/github-ci-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ mv build/test.log artifacts
#BUILD_ROOT="$(xcodebuild -workspace Hammerspoon.xcworkspace -scheme Release -showBuildSettings | sort | uniq | grep " BUILD_ROOT =" | awk '{ print $3 }')"
#trainer --fail_build false -p "${BUILD_ROOT}/../../Logs/Test/" -o build/reports/

echo "Running trainer against test results:"
find build/TestResults -ls

trainer --fail_build false -p "build/" -o build/reports/

echo "Produced test reports:"
ls build/reports/*.xml

# FIXME: Can we do this a bit more gracefully?
mv build/reports/*.xml build/reports/junit.xml
mv -v build/reports/*.xml build/reports/junit.xml

RESULT=$(grep -A1 "Test Suite 'All tests'" artifacts/test.log | tail -1 | sed -e 's/^[ ]+//')

Expand Down

0 comments on commit d75687d

Please sign in to comment.