sonar php 覆盖率,Sonar(Python)代码的报告中没有显示覆盖范围

我目前正在努力尝试覆盖范围,

覆盖文件(cobertura xml)在指定的 target 目录上正确生成,然后在 sonar.python.coverage.reportPath (基于我的父pom文件)上指定 . 顶级是父pom和不同的目录(包) .

这就是 module-test 的pom的pom属性

**/python/*/*.py

**/python/*/__init__.py

py

target/cov-report/cov-report.xml

可能是因为夹杂物阻止它被添加?我目前设置它,以便声纳只分析我们的基本文件 .

这是项目结构:

module-a

src

python

target

module-b

src

python

target

module-c

src

python

target

module-test

src

python

functionA

functionB

unit_test.py

target

cov-report

cov-report.xml

pom.xml

pom.xml

[WARNING] JUnit report directory not found at

/home/jenkins/workspace/master-ASDASKDOKAOK/module-test/sonar-reports

[INFO] Sensor Swift Surefire Sensor (done) | time=0ms

[INFO] Sensor SCM Sensor

[INFO] Sensor SCM Sensor (done) | time=1ms

[INFO] Sensor Python Squid Sensor

[INFO] Python unit test coverage

[INFO] Parsing report '/home/jenkins/workspace/master-ASDASKDOKAOK/module-test/target/cov-report/cov-report.xml'

[INFO] Python integration test coverage

[INFO] Python overall test coverage

[INFO] Sensor Python Squid Sensor (done) | time=1311ms

[INFO] Sensor XmlFileSensor

[INFO] Sensor XmlFileSensor (done) | time=0ms

[INFO] Sensor Analyzer for "php.ini" files

[INFO] Sensor Analyzer for "php.ini" files (done) | time=0ms

[INFO] Sensor Zero Coverage Sensor

[INFO] Sensor Zero Coverage Sensor (done) | time=9ms

[INFO] Sensor Code Colorizer Sensor

[INFO] Sensor Code Colorizer Sensor (done) | time=0ms

[INFO] Sensor CPD Block Indexer

[INFO] DefaultCpdBlockIndexer is used for py

[INFO] Sensor CPD Block Indexer (done) | time=52ms

声纳版本是sonar-python-plugin-1.8.0.1496

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值