apache / shardingsphere

Distributed SQL transaction & query engine for data sharding, scaling, encryption, and more - on any database.
Apache License 2.0
19.74k stars 6.69k forks source link

[Jacoco codeCov] Scan and create aggregation Jacoco report for ShardingSphere #31940

Closed AkaLrz closed 1 week ago

AkaLrz commented 2 months ago

Feature Summary:

By using Jacoco to create aggregation report about ShardingSphere. Fixed Bug caused by upgrade Junit from 4 to 5. Created Shell script automaticly merge report without creating a new module. Ensure sustainable reporting after adding modules in the future. Created Jacoco Github Action. Successfully configured Jacoco to adapt Junit5.

Added File: jacoco.yml unit-test-coverage-merge jacoco plug-in on pom

File Structure:

image

Note: In code-coverage-merge.sh, if unit-test-coverage-merge module changed position, should update latest root directory for file directory and output directory.

image
AkaLrz commented 1 month ago

This pr can also solve following Issue: Issue Name: Add code coverage in codecov #26526 Issue URL: https://github.com/apache/shardingsphere/issues/26526

taojintianxia commented 3 weeks ago

the codecov action need a upload token.