backend-tech-forge / benchmark

A enterprise level performance testing solution. Taking inspiration from nGrinder, this project aims to develop a Spring Boot application mirroring nGrinder's functionality as closely as feasible.
MIT License
4 stars 0 forks source link

feat: multi module Jacoco test coverage check #44

Closed ghkdqhrbals closed 8 months ago

ghkdqhrbals commented 8 months ago
  1. apply plugin jacoco-report-aggregation
  2. dependency 추가
implementation project(":bm-agent")
jacocoAggregation project(":bm-agent")

를 통해 agent 의 테스트 커버리지 또한 하나의 리포트로 받아볼 수 있도록 하였습니다.

현재 /bm-agent/build.gradle 내부 jacocoTestCoverageVerification task 테스트 커버리지 limit 을 0.00 으로 설정하였습니다.

임시로 0.00 으로 설정한 것이며 이 부분을 0.60 으로 맞추고 개발을 진행하셔야합니다 :)

jacocoTestCoverageVerification {
    violationRules {
        rule {
            // Set the path to the source files
            classDirectories.setFrom(tasks.jacocoTestReport.classDirectories)
            element = 'CLASS'
            enabled = true

            limit {
                counter = 'LINE'
                value = 'COVEREDRATIO'
                minimum = 0.00 <-- 0.60 으로 변경 필요
            }
            limit {
                counter = 'METHOD'
                value = 'COVEREDRATIO'
                minimum = 0.00 <-- 0.60 으로 변경 필요
            }
        }
    }
}
github-actions[bot] commented 8 months ago

📝 Test code-coverage reports

There is no coverage information present for the Files changed

Total Project Coverage 75.1% :green_apple: