comment coverage report generated by below scripts: ☺️ module | product code | test code ------ | ------------ | --------- dubbo-registry-redis | 6.8% | 16.5% dubbo-registry-multicast | 10.9% | 34.1% dubbo-rpc-redis | 11.1% | 16.5% dubbo-registry-zookeeper | 12.9% | 14.5% dubbo-rpc-webservice | 13.4% | 41.5% dubbo-monitor-default | 15.4% | 18.1% dubbo-rpc-http | 15.8% | 22.0% dubbo-remoting-netty | 16.2% | 34.4% dubbo-rpc-dubbo | 16.9% | 21.4% dubbo-rpc-memcached | 17.0% | 84.2% dubbo-remoting-mina | 17.7% | 48.1% dubbo-remoting-grizzly | 19.4% | - dubbo-rpc-thrift | 20.6% | 11.3% dubbo-serialization-fastjson | 20.9% | - dubbo-remoting-netty4 | 21.1% | 37.2% dubbo-container-log4j | 21.3% | 61.3% dubbo-config-api | 21.9% | 22.9% dubbo-rpc-hessian | 21.9% | 20.0% dubbo-registry-api | 22.2% | 20.8% dubbo-registry-default | 23.4% | 17.0% dubbo-serialization-protostuff | 24.1% | - dubbo-serialization-fst | 24.6% | - dubbo-common | 25.9% | 23.2% dubbo-remoting-zookeeper | 26.0% | 22.9% dubbo-rpc-rest | 28.4% | 33.8% dubbo-rpc-rmi | 28.7% | 52.4% dubbo-serialization-jdk | 28.8% | - dubbo-filter-validation | 28.9% | 32.9% dubbo-serialization-hessian2 | 30.3% | - dubbo-config-spring | 30.7% | 26.7% dubbo-serialization-kryo | 31.0% | - dubbo-rpc-injvm | 31.7% | 39.2% dubbo-remoting-api | 33.2% | 17.4% dubbo-remoting-p2p | 33.4% | 23.6% dubbo-container-logback | 33.7% | 48.7% dubbo-qos | 34.3% | 32.6% dubbo-container-spring | 34.5% | 57.6% dubbo-cluster | 35.5% | 19.4% dubbo-container-api | 35.8% | - dubbo-rpc-api | 36.0% | 31.0% dubbo-monitor-api | 37.0% | 15.4% dubbo-filter-cache | 38.3% | 32.2% dubbo-compatible | 40.3% | 23.8% dubbo-remoting-http | 47.4% | 34.8% dubbo-metrics-api | 50.8% | 19.9% dubbo-test-spring3 | 51.5% | - dubbo-demo-consumer | 52.5% | - dubbo-demo-provider | 63.8% | - dubbo-serialization-api | 79.1% | - dubbo-demo-api | 80.0% | -
-------------- ```bash #!/bin/bash # comment-coverage-report.sh # generate comment coverage report, markdown table format # # NOTE: # 1. run at project root dir # 2. install ohcount: https://github.com/blackducksw/ohcount # if you use mac install by brew: brew install ohcount getCommentCoverage() { local dir="$1" local comment_coverage="$(ohcount "$dir" | awk '/^java /{print $5}')" comment_coverage="${comment_coverage:--}" echo "$comment_coverage" } getCommentCoveragePerModule() { local pom for pom in `find -name pom.xml`; do local module_dir="$(dirname "$pom")" local module_name="$(basename "$module_dir")" local module_product_code_dir="$module_dir/src/main/java" local module_test_code_dir="$module_dir/src/test/java" [ ! -d "$module_product_code_dir" ] && continue echo "$(basename "$module_name") | $(getCommentCoverage "$module_product_code_dir") | $(getCommentCoverage "$module_test_code_dir")" done } genCommentCoverageReport() { # output table header echo "module | product code | test code" echo "------ | ------------ | ---------" # output table body getCommentCoveragePerModule | sort '-t|' -n -k2 } genCommentCoverageReport ``` [ Full content available at: https://github.com/apache/incubator-dubbo/issues/2884 ] This message was relayed via gitbox.apache.org for [email protected]
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
