Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CD: Include component tests coverage in codecov code coverage report. #1246

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
4 changes: 3 additions & 1 deletion .github/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ runs:
if: always()
with:
name: Test Results ${{ github.job }}
path: "**/test-results/**/*.xml"
path: |
**/test-results/**/*.xml
**/build/reports/jacoco/test/jacocoTestReport.xml
23 changes: 19 additions & 4 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ jobs:
with:
command: ./gradlew test jacocoTestReport

- name: CodeCov
uses: codecov/codecov-action@v2

Sanity-Check:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -327,6 +324,8 @@ jobs:
path: '**/build/reports/gatling/**'

Component-Tests:
env:
JACOCO: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -340,7 +339,7 @@ jobs:
- name: Component Tests
uses: ./.github/actions/run-tests
with:
command: ./gradlew test -DincludeTags="ComponentTest"
command: ./gradlew test jacocoTestReport -DincludeTags="ComponentTest"

OpenTelemetry-Integration-Tests:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -383,3 +382,19 @@ jobs:
if: always()
with:
files: "**/test-results/**/*.xml"

Upload-Coverage-Report-To-Codecov:
needs:
- Unit-Tests
- Component-Tests
runs-on: ubuntu-latest
if: always()
steps:
# Sources are needed for Codecov report
- uses: actions/checkout@v2
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
path: artifacts
- name: CodeCov
uses: codecov/codecov-action@v2
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ in the detailed section referring to by linking pull requests or issues.
* Add custom Jackson (de)serializer for `XMLGregorianCalendar` (#1226)
* Add contract validation rule (#1239)
* Harmonize setting names in `data-plane-transfer` (#1164)
* Add component tests coverage to the codecov coverage report (#1246)

#### Changed

Expand Down