We are facing issues with the code coverage for the public app that we are working on. We have worked on the same code earlier and we are able to complete the coverage, but now we are running the code and it shows the lines are executed but the coverage is not moving forward. We are facing this issue for another public app as well. Please let us know how we can solve this ?
Did you happen to discover this handy article on our community wiki around code coverage by @Raviraj ? Can you check to see if this helps you?
Yes, we have followed the steps which is mentioned in the document. And we also see the code coverage is increasing. But for few line alone though we run the app the code coverage doesn’t show as it’s been executed.
Could you show the code where the coverage is not tracked and the steps you have followed to test those functionalities?
If the uncovered code is sensitive, you can let me know and I can create a private thread here to share the code with me.
The app needs to be set up in local machine since we need to setup oauth and run the code, Can we connect over a quick call to demonstrate this, Please let me know further.
@hemakumar We don’t want to replicate the issue at the moment.
We want to see if the code is a platform framework code or custom code and how are you trying to cover them in your local testing.
If it’s an issue at FDK, it would help us to see which code is not being tracked and troubleshoot further on why. In that case, we could jump on a call over our office hours and try to unblock your progress.
@hemakumar please let me know if you were able to resolve your issue.
The issue of coverage is resolved post upgrading to latest fdk version 8.3.0.
After upgrade remove the artefacts from coverage folder and also the report.json file from application root folder in your workspace.
HI @Sachin_Kumar Thanks for your reply, I have tried the same steps as suggested and still facing the issue.
@hemakumar As mentioned I was facing the same issue with my apps however the issue got resolved after the upgrade and cleaning my app’s coverage folder and report.json file. If possible, we can connect over a call and try to troubleshoot the issue.
If you are still facing problems with code coverage, please let me know; I will drop a private message and try reproducing the issue…
thanks for the revert. the issue has been fixed a few weeks before.
Hi @Saif We are facing the same issue for a different app, can you help me on this ?
I have sent you a private message to request your app and steps to reproduce the issue. Please help with it and we can confirm the issue and pass it to the relevant engineering team for the fix.
@Raviraj - Do add me to the discussion; I can chime in to help @Janani out if needed.
how do you resolve the issue? any help apppericiated
We have released FDK v8.6.5 with code-coverage fixes. Please update to FDK v8.6.5 and let us know if the issue is resolved.
If that doesn’t work, please delete the
.report.json file in the app directory and retry the coverage.