Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/unitTestsAndroid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ jobs:
./gradlew jacocoTestReport
- uses: actions/upload-artifact@master
with:
name: code-coverage-artifact
name: code-coverage-artifact-android
path: android/build/reports/jacoco/jacocoTestReport/html
6 changes: 5 additions & 1 deletion .github/workflows/unitTestsJavaScript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ jobs:
yarn
- name: Build and test
run: |
yarn test --coverage
yarn test --coverage
- uses: actions/upload-artifact@master
with:
name: code-coverage-artifact-js
path: coverage
9 changes: 9 additions & 0 deletions .github/workflows/unitTestsiOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,12 @@ jobs:
- name: Code Coverage
run: |
echo "Total coverage (based on lines): `find . -name \*.xccovreport -exec xcrun xccov view {} \; | grep '.app' | head -1 | perl -pe 's/.+?(\d+\.\d+%).+/\1/'`"
- name: Report generation
run: |
gem install slather
cd ios
slather coverage --html --scheme RNMagicScriptHostApplication --workspace ./RNMagicScript.xcworkspace --build-directory Build ./RNMagicScript.xcodeproj
- uses: actions/upload-artifact@master
with:
name: code-coverage-artifact-ios
path: ios/html
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
"jest": {
"preset": "react-native",
"clearMocks": true,
"collectCoverageFrom": [
"components/platform/platform-factory.js"
],
"modulePaths": [
"components/utils"
]
Expand Down