From 0911d72772f9d43a58d174798c21c41e33c8a529 Mon Sep 17 00:00:00 2001 From: Andrey Frolov Date: Wed, 10 Apr 2024 14:29:33 +0200 Subject: [PATCH] SPT-1998 fix coverage --- .github/workflows/main.yml | 1 + .gitignore | 2 +- Makefile | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 37535b2f..9eab3180 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,6 +39,7 @@ jobs: with: fail_ci_if_error: true flags: unittests + directory: ./CoverageReports file: ./coverage.xml token: ${{ secrets.CODECOV_TOKEN }} verbose: true diff --git a/.gitignore b/.gitignore index 2d192013..7c703963 100644 --- a/.gitignore +++ b/.gitignore @@ -7,10 +7,10 @@ ## Build generated build/ DerivedData/ +CoverageReports/ Docs/swift_output/ Package.resolved NodeKit.xcodeproj/project.xcworkspace/xcshareddata/swiftpm -coverage.xml ## Various settings *.pbxuser diff --git a/Makefile b/Makefile index fc06ee03..b9cc0be4 100644 --- a/Makefile +++ b/Makefile @@ -18,9 +18,8 @@ spm_build: ## Run tests test: rm -rf DerivedData - rm *.txt xcodebuild test -scheme NodeKit -derivedDataPath DerivedData -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO -enableCodeCoverage YES -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.4' | bundle exec xcpretty -c - ./xcresultparser/xcresultparser -c -o xml DerivedData/Logs/Test/*.xcresult > ./coverage.xml + ./xcresultparser/xcresultparser --output-format cobertura DerivedData/Logs/Test/*.xcresult > ./coverage.xml ## Created documentation by comments from code doc: