Skip to content

Commit

Permalink
Create directories and set files.
Browse files Browse the repository at this point in the history
  • Loading branch information
nowakweronika committed Apr 26, 2024
1 parent 1a6493a commit d446718
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ jobs:
- name: Download test results from Firebase Test Lab
if: always()
run: |-
mkdir "app/build/test-results"
mkdir "app/build/test-results/instrumentation_results"
gsutil cp -r "gs://${{ steps.generate-dir.outputs.bucket }}/${{ steps.generate-dir.outputs.results_dir }}/Pixel2.arm-33-en-portrait/test_result_1.xml" "app/build/test-results/results.xml"
gsutil cp -r "gs://${{ steps.generate-dir.outputs.bucket }}/${{ steps.generate-dir.outputs.results_dir }}/Pixel2.arm-33-en-portrait/artifacts/sdcard/Download/*.ec" "app/build/test-results/instrumentation_results"
- name: Upload tests results
Expand Down
3 changes: 2 additions & 1 deletion module-jacoco.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ tasks.register('codeCoverage', JacocoReport) {
)

sourceDirectories.setFrom(
//fileTree(dir: "${buildDir}/test-results/instrumentation_results", includes: ['*.ec']),
fileTree(dir: "${buildDir}/test-results/instrumentation_results", includes: ['*.ec']),
fileTree(dir: project.projectDir, includes: ["src/main/java/**", "src/main/kotlin/**"])
)

executionData.setFrom(
fileTree(dir: "${buildDir}/test-results/instrumentation_results", includes: ['*.ec']),
fileTree(dir: "${buildDir}/outputs/unit_test_code_coverage", includes: ["**/*.exec", "**/*.ec"])
)
}

0 comments on commit d446718

Please sign in to comment.