Code Coverage Issue in FDK version 9.2.0

Hello,

We attempted code coverage using FDK version 9.2.0, but we’re encountering an issue where the function is executed, yet the line is not being covered in the code coverage report.

I’m attaching screenshots below that show the line not being covered.

Could someone help with this?

Hi @Nagamanickam_S

I encountered the same issue and managed to resolve it by following these steps:

  1. Delete the coverage folder and the .report.json file located in your project directory. This will clear any previous coverage data that might be causing conflicts.
  2. Start your local server by running the fdk run command in your terminal or command prompt. Ensure that the server is running smoothly without any errors.
  3. During the code coverage process, avoid making any changes to your code. Any alterations might interfere with the coverage results and could lead to inconsistencies.

Hi @Kithiyon,

We have already tried code coverage multiple times after deleting the code coverage folder and the report.json file, but we are still facing the same issue. please help us on this.

Thanks & Regards,
Nagamanickam

Hi @Nagamanickam_S
Did you stop the server during the code coverage process to check the coverage summary on the terminal, or did you make any changes to your code during that process? Additionally, were there any specific steps you followed to ensure the code coverage results were accurate,