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: