Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
MacOMNI committed Nov 11, 2024
1 parent 392e9a0 commit ab66222
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,12 @@ jobs:
run: |
mkdir -p coverage
find . -name "*.profraw" -exec llvm-profdata merge -sparse {} -o coverage/coverage.profdata \;
# find executable files
executables=$(find .build/debug -type f -executable)
# generate lcov coverage report
for executable in $executables; do
find .build/debug -type f -name "*.xctest" -exec file {} \; | grep -i 'executable' | cut -d: -f1 | while read executable; do
if [ -f "$executable" ]; then
echo "Generating coverage for $executable"
llvm-cov export -format=lcov -instr-profile=coverage/coverage.profdata "$executable" >> coverage/coverage.lcov
else
echo "Warning: $executable not found."
fi
done
- name: List Coverage Files
run: |
echo "Checking coverage files..."
Expand Down

0 comments on commit ab66222

Please sign in to comment.