From 5352b0a19ff78b9a7715daeaec273a4dcf738efd Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Wed, 14 Aug 2024 13:46:33 +0530
Subject: [PATCH 1/9] Add Codecov configuration
---
codecov.yml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 codecov.yml
diff --git a/codecov.yml b/codecov.yml
new file mode 100644
index 0000000..9571a5f
--- /dev/null
+++ b/codecov.yml
@@ -0,0 +1,16 @@
+
+codecov:
+ require_ci_to_pass: yes
+ notify:
+ wait_for_ci: yes
+coverage:
+ status:
+ project:
+ default:
+ enabled: yes
+ threshold: null
+ target: auto
+ patch:
+ default:
+ target: 80%
+ threshold: 40%
From c821b981f4c8cb3ed065fcb83bb2cbbc9b82f86d Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Wed, 14 Aug 2024 13:46:35 +0530
Subject: [PATCH 2/9] Update PR builder with Codecov steps
---
.github/workflows/pr-builder.yml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml
index 919ec49..06f6910 100644
--- a/.github/workflows/pr-builder.yml
+++ b/.github/workflows/pr-builder.yml
@@ -39,3 +39,12 @@ jobs:
- name: Build with Maven
run: mvn clean install -U -B
+
+ - name: Generate coverage report
+ run: mvn test jacoco:report
+
+ - name: Upload coverage reports to Codecov
+ uses: codecov/codecov-action@v4
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ files : target/site/jacoco/jacoco.xml
From 29fd2ec5cec306e4b288485a114244594960888f Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Wed, 14 Aug 2024 13:46:40 +0530
Subject: [PATCH 3/9] Update pom.xml with JaCoCo configuration
---
pom.xml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 52 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 77019f8..d884dc0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -113,7 +113,13 @@
pax-logging-api
${pax.logging.api.version}
-
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
@@ -149,7 +155,27 @@
false
-
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
@@ -197,7 +223,27 @@
-
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
@@ -225,7 +271,9 @@
1.10.1
-
+
+0.8.6
+
components/org.wso2.carbon.um.ws.service
From 1541493c254c0b028330ef397c6c09d97d75445a Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Wed, 14 Aug 2024 13:46:48 +0530
Subject: [PATCH 4/9] Update pom.xml with JaCoCo configuration
---
.../org.wso2.carbon.um.ws.api.stub/pom.xml | 30 +++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/components/org.wso2.carbon.um.ws.api.stub/pom.xml b/components/org.wso2.carbon.um.ws.api.stub/pom.xml
index aba7b9f..712b498 100644
--- a/components/org.wso2.carbon.um.ws.api.stub/pom.xml
+++ b/components/org.wso2.carbon.um.ws.api.stub/pom.xml
@@ -114,7 +114,27 @@
-
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
@@ -130,6 +150,12 @@
org.apache.ws.commons.axiom.wso2
axiom
-
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
From c5241a0da8420f8b421731560ca8018aa1d2a565 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Wed, 14 Aug 2024 13:46:51 +0530
Subject: [PATCH 5/9] Update pom.xml with JaCoCo configuration
---
components/org.wso2.carbon.um.ws.api/pom.xml | 30 ++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/components/org.wso2.carbon.um.ws.api/pom.xml b/components/org.wso2.carbon.um.ws.api/pom.xml
index 8f920d7..d621973 100644
--- a/components/org.wso2.carbon.um.ws.api/pom.xml
+++ b/components/org.wso2.carbon.um.ws.api/pom.xml
@@ -70,7 +70,13 @@
org.apache.felix.scr.ds-annotations
provided
-
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
@@ -104,7 +110,27 @@
-
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
From 3118da212a112c083b0b789207c557d8b4b557e9 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Wed, 14 Aug 2024 13:46:53 +0530
Subject: [PATCH 6/9] Update pom.xml with JaCoCo configuration
---
.../org.wso2.carbon.um.ws.service/pom.xml | 30 +++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/components/org.wso2.carbon.um.ws.service/pom.xml b/components/org.wso2.carbon.um.ws.service/pom.xml
index 86602da..6addf46 100644
--- a/components/org.wso2.carbon.um.ws.service/pom.xml
+++ b/components/org.wso2.carbon.um.ws.service/pom.xml
@@ -62,7 +62,13 @@
org.apache.felix.scr.ds-annotations
provided
-
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
@@ -88,7 +94,27 @@
-
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
From 234ad48778fefcb33c9fa08134811f5b3ff97830 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Wed, 14 Aug 2024 13:46:56 +0530
Subject: [PATCH 7/9] Update pom.xml with JaCoCo configuration
---
.../pom.xml | 30 +++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/features/org.wso2.carbon.um.ws.service.client.feature/pom.xml b/features/org.wso2.carbon.um.ws.service.client.feature/pom.xml
index c59a6fd..8903e4b 100644
--- a/features/org.wso2.carbon.um.ws.service.client.feature/pom.xml
+++ b/features/org.wso2.carbon.um.ws.service.client.feature/pom.xml
@@ -44,7 +44,13 @@
org.wso2.carbon.um.ws.api.stub
${project.version}
-
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
@@ -75,7 +81,27 @@
-
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
From 66b784c6fa0ee0f5d7464a0b26727a08f626877e Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Wed, 14 Aug 2024 13:46:57 +0530
Subject: [PATCH 8/9] Update pom.xml with JaCoCo configuration
---
.../pom.xml | 30 +++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/features/org.wso2.carbon.um.ws.service.feature/pom.xml b/features/org.wso2.carbon.um.ws.service.feature/pom.xml
index 82f420e..80b984c 100644
--- a/features/org.wso2.carbon.um.ws.service.feature/pom.xml
+++ b/features/org.wso2.carbon.um.ws.service.feature/pom.xml
@@ -45,7 +45,13 @@
${project.version}
zip
-
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
@@ -76,7 +82,27 @@
-
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
From ec49b5ed3b89708ceeb1ce2496bf164667b7e859 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Wed, 14 Aug 2024 13:46:59 +0530
Subject: [PATCH 9/9] Update pom.xml with JaCoCo configuration
---
.../pom.xml | 30 +++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/features/org.wso2.carbon.um.ws.service.server.feature/pom.xml b/features/org.wso2.carbon.um.ws.service.server.feature/pom.xml
index a5a432a..26088e9 100644
--- a/features/org.wso2.carbon.um.ws.service.server.feature/pom.xml
+++ b/features/org.wso2.carbon.um.ws.service.server.feature/pom.xml
@@ -39,7 +39,13 @@
org.wso2.carbon.um.ws.service
${project.version}
-
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
@@ -73,7 +79,27 @@
-
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+