From b4ceeb5b8325a1b573ec7d6f9fd671e1e9cc41f1 Mon Sep 17 00:00:00 2001 From: Peter Motzko Date: Mon, 3 Jul 2023 15:04:25 +0200 Subject: [PATCH] feat(devel): add tasks for test-report and coverage --- dev-assets/tasks/darwin/app.yaml | 10 ++++++++++ dev-assets/tasks/linux/app.yaml | 10 ++++++++++ dev-assets/tasks/windows/app.yaml | 12 +++++++++++- 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/dev-assets/tasks/darwin/app.yaml b/dev-assets/tasks/darwin/app.yaml index 917125d52..38d7ff285 100644 --- a/dev-assets/tasks/darwin/app.yaml +++ b/dev-assets/tasks/darwin/app.yaml @@ -36,6 +36,16 @@ tasks: - echo "BEARER {{.TOKEN}}" - echo "BEARER {{.TOKEN}}" | pbcopy + test-report: + desc: Generates the test report for MIW + cmds: + - ./gradlew jacocoTestReport + + coverage: + desc: Runs the coverage check + cmds: + - ./gradlew jacocoTestCoverageVerification + clean: desc: Cleans the build directory cmds: diff --git a/dev-assets/tasks/linux/app.yaml b/dev-assets/tasks/linux/app.yaml index 7ae5657fe..45eef3029 100644 --- a/dev-assets/tasks/linux/app.yaml +++ b/dev-assets/tasks/linux/app.yaml @@ -31,6 +31,16 @@ tasks: cmds: - echo "BAERER $(./get_Token.sh)" + test-report: + desc: Generates the test report for MIW + cmds: + - ./gradlew jacocoTestReport + + coverage: + desc: Runs the coverage check + cmds: + - ./gradlew jacocoTestCoverageVerification + clean: desc: Cleans the build directory cmds: diff --git a/dev-assets/tasks/windows/app.yaml b/dev-assets/tasks/windows/app.yaml index d379f7979..0b48893c8 100644 --- a/dev-assets/tasks/windows/app.yaml +++ b/dev-assets/tasks/windows/app.yaml @@ -31,7 +31,17 @@ tasks: cmds: - echo "Not implemented for windows!" + test-report: + desc: Generates the test report for MIW + cmds: + - .\gradlew.bat jacocoTestReport + + coverage: + desc: Runs the coverage check + cmds: + - .\gradlew.bat jacocoTestCoverageVerification + clean: desc: Cleans the build directory cmds: - - gradlew.bat clean \ No newline at end of file + - .\gradlew.bat clean \ No newline at end of file