Hi,
I updated my FDK version to 9.1.2 today. FDK pack was working before the update. Now suddenly it shows that the code is not reaching the 80% coverage.
The code coverage is 95.43% as checked from jest.
Attaching my file structure
Hi @Kithiyon
Thank you. This would help us for the testing phase.
Would this work for submission on marketplace as well? Because we have completed the unit testing and would be submitting the app.
We are using a monorepo. Inside the monorepo, there is a package for the freshdesk application. I’ve shared the directory structure for the freshdesk repo which contains all the tests.
The results are after running the command “yarn jest --coverage” on the local system.
We do not require writing unit tests or other automated tests for the apps. If you write them, that’s great. But our platform does not require them.
We require the app’s functionalities to be tested completely once before submitting them to the Marketplace. You can choose a manual or automated test.
We ensure this by measuring the code coverage by FDK instrumenting the code covered while testing the app locally. The code coverage results are shared along with the app zip files when the app is submitted to the Marketplace.
If your app is built with a frontend framework, it will not generate the code coverage from FDK, as the tested files would be modified while the app source code is compiled and minified.
In this case, submit the app as per our code review guidelines, and this code coverage requirement will be skipped automatically.
@Kithiyon@Raviraj
There are still some issues with the packing on jenkins pipeline. We wish to use the older version of fdk for the time being. Is there a way to chose which fdk version to install?
We tried it using the link on this post Chose FDK version but this is not working. Can you help?
Hi @Kithiyon
These are running on my local system but are failing on the Jenkins Server.
Therefore we want to revert to FDK version 9.0.9. Can you help regarding this?
I’m not familiar with Jenkins Server. Freshworks expects their partners to achieve 80% code coverage when submitting an app for review. You need to achieve 80% code coverage to submit the app for review.