I’ve been trying to increase the code coverage for a public app but I’ve been facing issues with that. Even if a specific line of code or a function was executed, the code coverage file is not reflected properly. The coverage file is showing as that particular line of code or function is not executed. (Please find the attachment below)
As shown in the screenshot even if the code is executed 105x, 170x times(count bar in green) it is not getting reflected in the coverage file. it is still showing as the code/function is not executed. Can somebody help with this?
@Thamaraiselvan, we have received multiple similar reports and are currently looking into the issue. We will keep you posted through this thread as soon as we have any updates.
I am trying to increase my code coverage %.
I am not sure why the code coverage of fdk 8.6 (latest) is not working properly.
I tried code mentioned in the blog below and its coverage isonly 64.77%.
here is the screen shot of the code which was written in the blog where its showing 91.67% and on my local its showing 64.77%.
I tried all the flows which are in my application but its not increasing significantly.
Is there any way to write the tests rather than using the standard fdk …
Can you please update is there any new updates on this code coverage issue that I’ve raised? Thank you!
Sorry about the delay.
Can you please try the steps mentioned here:
In order to understand the root cause of the issue, it would be great if you can answer following questions
Since when you were getting this issue?
Did you recently upgrade the fdk ?
Did you changed the codebase from last shipped version or is it a fresh app ?
Did you tried removing the old code coverage (folder and .report.json file ) before testing the app.
Did you made any changes in between the testing of the app.
is it possible to share the Zip file.
Thanks in adva…
…particularly, removing the
.report.json file and retrying the code coverage?
@Thamaraiselvan Please update FDK to v8.6 5 and delete the
.report.json file, and retry testing the app. We have released a code coverage fix in FDK 8.6.5 which should address the issue.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.