Skip to content

Commit fda2677

Browse files
committed
[ci] update test script
1 parent 22ceaa8 commit fda2677

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

ComposeUI/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ test-visionOS: # Run tests on visionOS.
4949

5050
.PHONY: test-codecov
5151
test-codecov: # Run tests with code coverage.
52-
@$(REPO_ROOT)/scripts/retry.sh --max-attempts 3 --delay 3 \
53-
swift test -Xswiftc -DTEST --enable-code-coverage
52+
@$(REPO_ROOT)/scripts/swift-package/test-package.sh --package "$(MAKEFILE_DIR)" --max-attempts 3 --delay 3 --summary "$${GITHUB_STEP_SUMMARY:-}" --enable-code-coverage -Xswiftc -DTEST
5453
xcrun llvm-cov export -format="lcov" .build/debug/ComposeUIPackageTests.xctest/Contents/MacOS/ComposeUIPackageTests -instr-profile .build/debug/codecov/default.profdata > .build/debug/codecov/coverage.lcov
5554
$(REPO_ROOT)/scripts/filter-lcov.sh .build/debug/codecov/coverage.lcov --keep-pattern '.+Sources/.+'
5655

ComposeUI/Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/download-scripts.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ declare -a scripts=(
2424
"scripts/git/git-hooks/post-merge"
2525
"scripts/git/git-hooks/pre-commit"
2626
"scripts/swift-package/build-workspace.sh"
27+
"scripts/swift-package/test-package.sh"
2728
"scripts/swift-package/test-workspace.sh"
2829
"scripts/swift-package/update-packages.sh"
2930
"scripts/xcodebuild/build-project.sh"

0 commit comments

Comments
 (0)