From 7ecb64bb5e637b4f004a9ec24c14a58931af3411 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 16:36:47 +0530
Subject: [PATCH 01/10] [Automated]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 12c69bc33e88c8b8119158efc1f1dc6ae9a4d36f Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 16:36:49 +0530
Subject: [PATCH 02/10] Update PR builder with Codecov steps
---
.github/workflows/pr-builder.yml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml
index 3ca871d..634b7c1 100644
--- a/.github/workflows/pr-builder.yml
+++ b/.github/workflows/pr-builder.yml
@@ -39,3 +39,11 @@ 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 6b397ac1946fa72c413312bc54043ed98aca72ba Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 16:36:54 +0530
Subject: [PATCH 03/10] Update root pom.xml with JaCoCo configuration
---
pom.xml | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/pom.xml b/pom.xml
index 500c516..35061dc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -98,6 +98,25 @@
build-helper-maven-plugin
${maven.build.helper.plugin.version}
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
@@ -346,6 +365,11 @@
runtime
${jacoco.version}
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -395,6 +419,8 @@
6.9.10
1.6.5
0.8.2
+
+ 0.8.12
From afa8fc71fb5807315aa52e1fc3e3705407bb947a Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 16:39:38 +0530
Subject: [PATCH 04/10] Update all component pom.xml files with JaCoCo
configuration
---
.../pom.xml | 26 ++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/components/org.wso2.carbon.identity.api.user.fido2/pom.xml b/components/org.wso2.carbon.identity.api.user.fido2/pom.xml
index ff80063..3839bf4 100644
--- a/components/org.wso2.carbon.identity.api.user.fido2/pom.xml
+++ b/components/org.wso2.carbon.identity.api.user.fido2/pom.xml
@@ -71,7 +71,26 @@
1.8
-
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
@@ -154,5 +173,10 @@
jackson-databind
provided
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
From d9bc89d555ddd0db2ae936fa0b6879a6d92e49f0 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 16:39:40 +0530
Subject: [PATCH 05/10] Update all component pom.xml files with JaCoCo
configuration
---
.../pom.xml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/components/org.wso2.carbon.identity.application.authenticator.fido/pom.xml b/components/org.wso2.carbon.identity.application.authenticator.fido/pom.xml
index 5a5eece..80dad82 100644
--- a/components/org.wso2.carbon.identity.application.authenticator.fido/pom.xml
+++ b/components/org.wso2.carbon.identity.application.authenticator.fido/pom.xml
@@ -106,6 +106,11 @@
runtime
test
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -241,6 +246,25 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
From 8b09e5b04e1a16751631c6020c2b1129be4225af Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 16:39:41 +0530
Subject: [PATCH 06/10] Update all component pom.xml files with JaCoCo
configuration
---
.../pom.xml | 26 ++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/components/org.wso2.carbon.identity.application.authenticator.fido2.endpoint/pom.xml b/components/org.wso2.carbon.identity.application.authenticator.fido2.endpoint/pom.xml
index c29cf51..c7c5255 100644
--- a/components/org.wso2.carbon.identity.application.authenticator.fido2.endpoint/pom.xml
+++ b/components/org.wso2.carbon.identity.application.authenticator.fido2.endpoint/pom.xml
@@ -84,7 +84,26 @@
1.8
-
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
@@ -172,6 +191,11 @@
jackson-databind
provided
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
From cd41a5e04d262b9cf37693564dfaeeaf60873bd4 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 16:39:43 +0530
Subject: [PATCH 07/10] Update all component pom.xml files with JaCoCo
configuration
---
.../pom.xml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/components/org.wso2.carbon.identity.application.authenticator.fido2/pom.xml b/components/org.wso2.carbon.identity.application.authenticator.fido2/pom.xml
index 022f2f3..779f64c 100644
--- a/components/org.wso2.carbon.identity.application.authenticator.fido2/pom.xml
+++ b/components/org.wso2.carbon.identity.application.authenticator.fido2/pom.xml
@@ -114,6 +114,11 @@
runtime
test
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -249,6 +254,25 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
From 416553b04c678382789fd6d5bda0df9090b32dbb Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 16:39:45 +0530
Subject: [PATCH 08/10] Update all component pom.xml files with JaCoCo
configuration
---
.../pom.xml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/components/org.wso2.carbon.identity.authenticator.fido.stub/pom.xml b/components/org.wso2.carbon.identity.authenticator.fido.stub/pom.xml
index 6131ecc..155932a 100644
--- a/components/org.wso2.carbon.identity.authenticator.fido.stub/pom.xml
+++ b/components/org.wso2.carbon.identity.authenticator.fido.stub/pom.xml
@@ -99,6 +99,25 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
@@ -111,6 +130,11 @@
org.apache.axis2.wso2
axis2-client
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
From 68b6d23785f146b62c570b88197b630860c881ed Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 16:39:47 +0530
Subject: [PATCH 09/10] Update all component pom.xml files with JaCoCo
configuration
---
.../pom.xml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/features/org.wso2.carbon.identity.application.authenticator.fido.server.feature/pom.xml b/features/org.wso2.carbon.identity.application.authenticator.fido.server.feature/pom.xml
index 57223c6..bfd93a7 100644
--- a/features/org.wso2.carbon.identity.application.authenticator.fido.server.feature/pom.xml
+++ b/features/org.wso2.carbon.identity.application.authenticator.fido.server.feature/pom.xml
@@ -43,6 +43,11 @@
org.wso2.carbon.identity.framework
org.wso2.carbon.identity.application.authentication.framework
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -74,6 +79,25 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
From 2754214ada77b330d6fee5f6caa99053d2436844 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 16:39:49 +0530
Subject: [PATCH 10/10] Update all component pom.xml files with JaCoCo
configuration
---
.../pom.xml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/features/org.wso2.carbon.identity.application.authenticator.fido2.server.feature/pom.xml b/features/org.wso2.carbon.identity.application.authenticator.fido2.server.feature/pom.xml
index 0fae05c..70fc639 100644
--- a/features/org.wso2.carbon.identity.application.authenticator.fido2.server.feature/pom.xml
+++ b/features/org.wso2.carbon.identity.application.authenticator.fido2.server.feature/pom.xml
@@ -79,6 +79,11 @@
webauthn4j
${orbit.webauthn4j.version}
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -186,6 +191,25 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+