I am facing this below error while promoting 2g package
Error (1): The code coverage required to promote this version has not been met. Please add additional test coverage and ensure the code coverage check passes during version creation.
My test class has 100% code coverage and I'm getting below result when I run test from VS code
TEST NAME OUTCOME MESSAGE RUNTIME (MS)
────────────────────────────────────── ─────── ─────── ────────────
CTTest.testSendFile Pass 574
Below is the command used for promoting package:
Sfdx force:package:version:promote -p PACKAGEVERSIONNAME -v TARGETDEVHUBUSERNAME
Few more queries :
- When we plan to submit the package, do we need to create a Developer edition org in PBO , install the package and submit the same for review?
- Let's say we have developed an app in an org(which has multiple classes, VF page, lightning components) and it doesn't have namespace. what will be the best approach to create @2GP for the same? Please advise.