IBM i Global

 View Only

 CODECOV command for code coverage

Cristian Ballestero's profile image
Cristian Ballestero posted Sun February 15, 2026 09:04 PM
I've recently been having a problem with the code coverage command QDEVTOOLS.CODECOV. Basically, the problem is that the CCZIP file generated by the command isn't correctly mapping executed/unexecuted lines.
 
In some cases, differences have been observed in the mapping of executed lines within the generated report.
 
After performing multiple tests and validations (including repeatable execution with automated tests in RPGUnit), I've detected variations in the coverage results under the same execution conditions (source compiled with DBGVIEW (*SOURCE) and executed with RPGUnit). This leads me to believe there might be a recent system-level change (possibly related to PTFs or updates), since the report was previously generated correctly.
 
If anyone has experienced something similar or has technical information that could help better understand this scenario, it would be greatly appreciated.
Leszek Gruszczynski's profile image
Leszek Gruszczynski

Hello, 

I have a similar problem with codecov
Tested on 7.5 system with the new PTF group.

Here was example of code wiht wrong red mark.

Cristian Ballestero's profile image
Cristian Ballestero

Hello, we reported the problem to IBM and they confirmed that it was due to an installed PTF. In our case, it was resolved by installing the PTF they recommended.