Skip to content

[ROCKETMQ-187]Measure the code coverage for Integration Tests, and add sonar-apache profile#96

Closed
dongeforever wants to merge 1 commit into
apache:developfrom
dongeforever:IT_POLISH
Closed

[ROCKETMQ-187]Measure the code coverage for Integration Tests, and add sonar-apache profile#96
dongeforever wants to merge 1 commit into
apache:developfrom
dongeforever:IT_POLISH

Conversation

@dongeforever

Copy link
Copy Markdown
Member

https://issues.apache.org/jira/browse/ROCKETMQ-187

Now we could browse the Unit Tests and IT Tests at
https://builds.apache.org/analysis/component_measures/?id=org.apache.rocketmq%3Arocketmq-all
But the IT Test coverage is not correct. It should cover the original sources instead of the the classes in test module.
As for as I known, the coverage report is generated by matching the collected data(often using java agent) against a set of classes (the module classes compiled from src/main/). you could refer to: http://olafsblog.sysbsb.de/measuring-test-coverage-of-integration-tests-for-separated-modules-with-jacoco/
So we could match the jacoco-it.exec to each module's source classes to get the correct IT coverage report.
By the way, we'd better exclude the classes in the test module.

we may use sonar locally.
So we'd better use profile to handle different occasions

@dongeforever

Copy link
Copy Markdown
Member Author

@lizhanhui @zhouxinyu @vongosling please have a review

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.06%) to 34.694% when pulling d7a155a on dongeforever:IT_POLISH into 42f78c2 on apache:develop.

2 similar comments
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.06%) to 34.694% when pulling d7a155a on dongeforever:IT_POLISH into 42f78c2 on apache:develop.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.06%) to 34.694% when pulling d7a155a on dongeforever:IT_POLISH into 42f78c2 on apache:develop.

@vongosling

Copy link
Copy Markdown
Member

LGTM

@zhouxinyu zhouxinyu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~

@dongeforever

Copy link
Copy Markdown
Member Author

The PR is better not to be merged by the original author.
@lizhanhui @zhouxinyu @shroman please help merge this PR.

asfgit pushed a commit that referenced this pull request May 9, 2017
@lizhanhui

Copy link
Copy Markdown
Contributor

It's good and looks it's already been merged.

asfgit pushed a commit that referenced this pull request Jun 6, 2017
JiaMingLiu93 pushed a commit to JiaMingLiu93/rocketmq that referenced this pull request May 28, 2020
JiaMingLiu93 pushed a commit to JiaMingLiu93/rocketmq that referenced this pull request May 28, 2020
pingww added a commit that referenced this pull request Aug 26, 2022
[ISSUE #22] improving codeCov of mqtt.ds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants