This commit is contained in:
Jan-Philipp Luithardt
2025-12-03 18:15:16 +01:00
parent c35218453f
commit f09564dfb0
22 changed files with 727 additions and 44 deletions

View File

@@ -0,0 +1,5 @@
name: Jacoco Test Results
id: jacoco
uses: cicirello/jacoco-badge-generator@v2
with:
jacoco-csv-file: build/reports/jacoco/jacoco.csv

View File

@@ -1,19 +1,19 @@
name: Gitea Actions Demo #name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 #run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push] #on: [push]
#
jobs: #jobs:
Explore-Gitea-Actions: # Explore-Gitea-Actions:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." # - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" # - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." # - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code # - name: Check out repository code
uses: actions/checkout@v4 # uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." # - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner." # - run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository # - name: List files in the repository
run: | # run: |
ls ${{ gitea.workspace }} # ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}." # - run: echo "🍏 This job's status is ${{ job.status }}."

Binary file not shown.

View File

@@ -41,7 +41,8 @@ jacocoTestReport {
dependsOn test dependsOn test
reports { reports {
xml.required = false xml.required = false
csv.required = false csv.required = true
html.outputLocation.set(layout.buildDirectory.dir('jacocoHtml')) html.outputLocation.set(layout.buildDirectory.dir('jacocoHtml'))
csv.destination file("${buildDir}/reports/jacoco/jacoco.csv")
} }
} }

View File

@@ -0,0 +1,7 @@
GROUP,PACKAGE,CLASS,INSTRUCTION_MISSED,INSTRUCTION_COVERED,BRANCH_MISSED,BRANCH_COVERED,LINE_MISSED,LINE_COVERED,COMPLEXITY_MISSED,COMPLEXITY_COVERED,METHOD_MISSED,METHOD_COVERED
GSE2TaskTracker,hhn.temp.project,Task,0,115,0,16,0,36,0,19,0,11
GSE2TaskTracker,hhn.temp.project,TaskManager,0,191,0,22,0,35,0,23,0,12
GSE2TaskTracker,hhn.temp.project,Main,0,3,0,0,0,1,0,1,0,1
GSE2TaskTracker,hhn.temp.project,TaskStatus,0,21,0,0,0,2,0,1,0,1
GSE2TaskTracker,hhn.temp.project.expections,TaskAlreadyExistsException,0,4,0,0,0,2,0,1,0,1
GSE2TaskTracker,hhn.temp.project.expections,TaskHasNoWorkerException,0,4,0,0,0,2,0,1,0,1
1 GROUP PACKAGE CLASS INSTRUCTION_MISSED INSTRUCTION_COVERED BRANCH_MISSED BRANCH_COVERED LINE_MISSED LINE_COVERED COMPLEXITY_MISSED COMPLEXITY_COVERED METHOD_MISSED METHOD_COVERED
2 GSE2TaskTracker hhn.temp.project Task 0 115 0 16 0 36 0 19 0 11
3 GSE2TaskTracker hhn.temp.project TaskManager 0 191 0 22 0 35 0 23 0 12
4 GSE2TaskTracker hhn.temp.project Main 0 3 0 0 0 1 0 1 0 1
5 GSE2TaskTracker hhn.temp.project TaskStatus 0 21 0 0 0 2 0 1 0 1
6 GSE2TaskTracker hhn.temp.project.expections TaskAlreadyExistsException 0 4 0 0 0 2 0 1 0 1
7 GSE2TaskTracker hhn.temp.project.expections TaskHasNoWorkerException 0 4 0 0 0 2 0 1 0 1

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,7 @@
GROUP,PACKAGE,CLASS,INSTRUCTION_MISSED,INSTRUCTION_COVERED,BRANCH_MISSED,BRANCH_COVERED,LINE_MISSED,LINE_COVERED,COMPLEXITY_MISSED,COMPLEXITY_COVERED,METHOD_MISSED,METHOD_COVERED
GSE2TaskTracker,hhn.temp.project,Task,0,115,0,16,0,36,0,19,0,11
GSE2TaskTracker,hhn.temp.project,TaskManager,0,191,0,22,0,35,0,23,0,12
GSE2TaskTracker,hhn.temp.project,Main,0,3,0,0,0,1,0,1,0,1
GSE2TaskTracker,hhn.temp.project,TaskStatus,0,21,0,0,0,2,0,1,0,1
GSE2TaskTracker,hhn.temp.project.expections,TaskAlreadyExistsException,0,4,0,0,0,2,0,1,0,1
GSE2TaskTracker,hhn.temp.project.expections,TaskHasNoWorkerException,0,4,0,0,0,2,0,1,0,1
1 GROUP PACKAGE CLASS INSTRUCTION_MISSED INSTRUCTION_COVERED BRANCH_MISSED BRANCH_COVERED LINE_MISSED LINE_COVERED COMPLEXITY_MISSED COMPLEXITY_COVERED METHOD_MISSED METHOD_COVERED
2 GSE2TaskTracker hhn.temp.project Task 0 115 0 16 0 36 0 19 0 11
3 GSE2TaskTracker hhn.temp.project TaskManager 0 191 0 22 0 35 0 23 0 12
4 GSE2TaskTracker hhn.temp.project Main 0 3 0 0 0 1 0 1 0 1
5 GSE2TaskTracker hhn.temp.project TaskStatus 0 21 0 0 0 2 0 1 0 1
6 GSE2TaskTracker hhn.temp.project.expections TaskAlreadyExistsException 0 4 0 0 0 2 0 1 0 1
7 GSE2TaskTracker hhn.temp.project.expections TaskHasNoWorkerException 0 4 0 0 0 2 0 1 0 1

File diff suppressed because one or more lines are too long

View File

@@ -41,7 +41,7 @@
</td> </td>
<td> <td>
<div class="infoBox" id="duration"> <div class="infoBox" id="duration">
<div class="counter">0.008s</div> <div class="counter">0.011s</div>
<p>duration</p> <p>duration</p>
</div> </div>
</td> </td>
@@ -84,13 +84,13 @@
<tr> <tr>
<td class="success">Assert an IllegalArgumentException when you create a new Task with no or wrong Name, Description</td> <td class="success">Assert an IllegalArgumentException when you create a new Task with no or wrong Name, Description</td>
<td class="success">assertExceptionOnCreateNewTask()</td> <td class="success">assertExceptionOnCreateNewTask()</td>
<td class="success">0s</td> <td class="success">0.001s</td>
<td class="success">passed</td> <td class="success">passed</td>
</tr> </tr>
<tr> <tr>
<td class="success">Assert an IllegalArgumentException when you create a new Task with the same Name of a exits Task</td> <td class="success">Assert an IllegalArgumentException when you create a new Task with the same Name of a exits Task</td>
<td class="success">assertExceptionOnCreateNewTaskWithExitsName()</td> <td class="success">assertExceptionOnCreateNewTaskWithExitsName()</td>
<td class="success">0s</td> <td class="success">0.001s</td>
<td class="success">passed</td> <td class="success">passed</td>
</tr> </tr>
<tr> <tr>
@@ -102,7 +102,7 @@
<tr> <tr>
<td class="success">Assert an IllegalArgumentException when you edit a exits Task</td> <td class="success">Assert an IllegalArgumentException when you edit a exits Task</td>
<td class="success">assertExceptionOnEditATask()</td> <td class="success">assertExceptionOnEditATask()</td>
<td class="success">0.007s</td> <td class="success">0.008s</td>
<td class="success">passed</td> <td class="success">passed</td>
</tr> </tr>
<tr> <tr>
@@ -121,7 +121,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/> <input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label> </label>
</div>Generated by </div>Generated by
<a href="https://www.gradle.org">Gradle 8.14</a> at 03.12.2025, 18:04:12</p> <a href="https://www.gradle.org">Gradle 8.14</a> at 03.12.2025, 18:15:12</p>
</div> </div>
</div> </div>
</body> </body>

View File

@@ -41,7 +41,7 @@
</td> </td>
<td> <td>
<div class="infoBox" id="duration"> <div class="infoBox" id="duration">
<div class="counter">0.002s</div> <div class="counter">0.003s</div>
<p>duration</p> <p>duration</p>
</div> </div>
</td> </td>
@@ -102,7 +102,7 @@
<tr> <tr>
<td class="success">Set Author of a Task</td> <td class="success">Set Author of a Task</td>
<td class="success">assertSetAuthorOfATask()</td> <td class="success">assertSetAuthorOfATask()</td>
<td class="success">0s</td> <td class="success">0.001s</td>
<td class="success">passed</td> <td class="success">passed</td>
</tr> </tr>
</table> </table>
@@ -115,7 +115,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/> <input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label> </label>
</div>Generated by </div>Generated by
<a href="https://www.gradle.org">Gradle 8.14</a> at 03.12.2025, 18:04:12</p> <a href="https://www.gradle.org">Gradle 8.14</a> at 03.12.2025, 18:15:12</p>
</div> </div>
</div> </div>
</body> </body>

View File

@@ -38,7 +38,7 @@
</td> </td>
<td> <td>
<div class="infoBox" id="duration"> <div class="infoBox" id="duration">
<div class="counter">0.010s</div> <div class="counter">0.014s</div>
<p>duration</p> <p>duration</p>
</div> </div>
</td> </td>
@@ -85,7 +85,7 @@
<td>11</td> <td>11</td>
<td>0</td> <td>0</td>
<td>0</td> <td>0</td>
<td>0.010s</td> <td>0.014s</td>
<td class="success">100%</td> <td class="success">100%</td>
</tr> </tr>
</tbody> </tbody>
@@ -112,7 +112,7 @@
<td>6</td> <td>6</td>
<td>0</td> <td>0</td>
<td>0</td> <td>0</td>
<td>0.008s</td> <td>0.011s</td>
<td class="success">100%</td> <td class="success">100%</td>
</tr> </tr>
<tr> <tr>
@@ -122,7 +122,7 @@
<td>5</td> <td>5</td>
<td>0</td> <td>0</td>
<td>0</td> <td>0</td>
<td>0.002s</td> <td>0.003s</td>
<td class="success">100%</td> <td class="success">100%</td>
</tr> </tr>
</tbody> </tbody>
@@ -136,7 +136,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/> <input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label> </label>
</div>Generated by </div>Generated by
<a href="https://www.gradle.org">Gradle 8.14</a> at 03.12.2025, 18:04:12</p> <a href="https://www.gradle.org">Gradle 8.14</a> at 03.12.2025, 18:15:12</p>
</div> </div>
</div> </div>
</body> </body>

View File

@@ -40,7 +40,7 @@
</td> </td>
<td> <td>
<div class="infoBox" id="duration"> <div class="infoBox" id="duration">
<div class="counter">0.010s</div> <div class="counter">0.014s</div>
<p>duration</p> <p>duration</p>
</div> </div>
</td> </td>
@@ -83,7 +83,7 @@
<td>6</td> <td>6</td>
<td>0</td> <td>0</td>
<td>0</td> <td>0</td>
<td>0.008s</td> <td>0.011s</td>
<td class="success">100%</td> <td class="success">100%</td>
</tr> </tr>
<tr> <tr>
@@ -93,7 +93,7 @@
<td>5</td> <td>5</td>
<td>0</td> <td>0</td>
<td>0</td> <td>0</td>
<td>0.002s</td> <td>0.003s</td>
<td class="success">100%</td> <td class="success">100%</td>
</tr> </tr>
</table> </table>
@@ -106,7 +106,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/> <input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label> </label>
</div>Generated by </div>Generated by
<a href="https://www.gradle.org">Gradle 8.14</a> at 03.12.2025, 18:04:12</p> <a href="https://www.gradle.org">Gradle 8.14</a> at 03.12.2025, 18:15:12</p>
</div> </div>
</div> </div>
</body> </body>

View File

@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<testsuite name="project.BadCaseTaskTest" tests="6" skipped="0" failures="0" errors="0" timestamp="2025-12-03T17:04:12.197Z" hostname="Mac.fritz.box" time="0.012"> <testsuite name="project.BadCaseTaskTest" tests="6" skipped="0" failures="0" errors="0" timestamp="2025-12-03T17:15:12.771Z" hostname="Mac.fritz.box" time="0.013">
<properties/> <properties/>
<testcase name="Assert an IllegalArgumentException when you edit a exits Task" classname="project.BadCaseTaskTest" time="0.007"/> <testcase name="Assert an IllegalArgumentException when you edit a exits Task" classname="project.BadCaseTaskTest" time="0.008"/>
<testcase name="Assert an IllegalArgumentException when you create a new Task with no or wrong Name, Description" classname="project.BadCaseTaskTest" time="0.0"/> <testcase name="Assert an IllegalArgumentException when you create a new Task with no or wrong Name, Description" classname="project.BadCaseTaskTest" time="0.001"/>
<testcase name="Assert an IllegalArgumentException when you create a new Task with the same Name of a exits Task" classname="project.BadCaseTaskTest" time="0.0"/> <testcase name="Assert an IllegalArgumentException when you create a new Task with the same Name of a exits Task" classname="project.BadCaseTaskTest" time="0.001"/>
<testcase name="Assert an IllegalArgumentException when delete a existing Task with wrong arguments" classname="project.BadCaseTaskTest" time="0.0"/> <testcase name="Assert an IllegalArgumentException when delete a existing Task with wrong arguments" classname="project.BadCaseTaskTest" time="0.0"/>
<testcase name="Get a Exeption by setWorker and getWorker" classname="project.BadCaseTaskTest" time="0.0"/> <testcase name="Get a Exeption by setWorker and getWorker" classname="project.BadCaseTaskTest" time="0.0"/>
<testcase name="Assert an IllegalArgumentException when calling a non-Existing Task" classname="project.BadCaseTaskTest" time="0.001"/> <testcase name="Assert an IllegalArgumentException when calling a non-Existing Task" classname="project.BadCaseTaskTest" time="0.001"/>

View File

@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<testsuite name="project.GoodCaseTaskTest" tests="5" skipped="0" failures="0" errors="0" timestamp="2025-12-03T17:04:12.210Z" hostname="Mac.fritz.box" time="0.003"> <testsuite name="project.GoodCaseTaskTest" tests="5" skipped="0" failures="0" errors="0" timestamp="2025-12-03T17:15:12.786Z" hostname="Mac.fritz.box" time="0.004">
<properties/> <properties/>
<testcase name="Edit Task" classname="project.GoodCaseTaskTest" time="0.001"/> <testcase name="Edit Task" classname="project.GoodCaseTaskTest" time="0.001"/>
<testcase name="Create a new Task" classname="project.GoodCaseTaskTest" time="0.001"/> <testcase name="Create a new Task" classname="project.GoodCaseTaskTest" time="0.001"/>
<testcase name="Check TaskList if Task there" classname="project.GoodCaseTaskTest" time="0.0"/> <testcase name="Check TaskList if Task there" classname="project.GoodCaseTaskTest" time="0.0"/>
<testcase name="Delete Task" classname="project.GoodCaseTaskTest" time="0.0"/> <testcase name="Delete Task" classname="project.GoodCaseTaskTest" time="0.0"/>
<testcase name="Set Author of a Task" classname="project.GoodCaseTaskTest" time="0.0"/> <testcase name="Set Author of a Task" classname="project.GoodCaseTaskTest" time="0.001"/>
<system-out><![CDATA[]]></system-out> <system-out><![CDATA[]]></system-out>
<system-err><![CDATA[]]></system-err> <system-err><![CDATA[]]></system-err>
</testsuite> </testsuite>