You need to sign in to do that
Don't have an account?
Manza
how to report a bug
I am wondering what is the best way to report a bug.
We are having an issue and I submitted a case and Salesforce keep closing it, with their generic close response,
"Please be informed that Developer support is currently available only to our premier customers and Premier partners ...."
I have posted this question on StackExchange regarding the bug
http://salesforce.stackexchange.com/questions/70187/low-code-coverage-when-production-and-new-test-class-to-deploy-are-over-80?noredirect=1#comment91714_70187
but to summarize it seems that the code coverage in our production org is displaying the wrong numbers, as all of them past and the overall is above 80%, when validation 1 test class that will increase a class coverage from 0% to 100% it fails saying that code coverga is only 73%
how can this be possible if the new test class will improve the coverage. The only thing that I can think is that the initial overal coverage is wrong and it is not 82%
We are having an issue and I submitted a case and Salesforce keep closing it, with their generic close response,
"Please be informed that Developer support is currently available only to our premier customers and Premier partners ...."
I have posted this question on StackExchange regarding the bug
http://salesforce.stackexchange.com/questions/70187/low-code-coverage-when-production-and-new-test-class-to-deploy-are-over-80?noredirect=1#comment91714_70187
but to summarize it seems that the code coverage in our production org is displaying the wrong numbers, as all of them past and the overall is above 80%, when validation 1 test class that will increase a class coverage from 0% to 100% it fails saying that code coverga is only 73%
how can this be possible if the new test class will improve the coverage. The only thing that I can think is that the initial overal coverage is wrong and it is not 82%
Please refer to these links as these might be useful:
https://success.salesforce.com/issues_view?id=a1p30000000T4oRAAS
https://help.salesforce.com/apex/HTViewSolution?urlname=Code-coverage-steps-and-considerations-prior-to-deployments&language=en_US
Thanks,
Pratik
All Answers
Thanks for the details. I have also gone through post that you mentioned. I will suggest you to check the code coverage in sandbox before deploying it into production as to check if any inconsistency.
If you are using the existing data in your test class then make sure you create the sample records in test class.
You can also check for hardcoded values.
Please let us know if issue still persists.
Thanks,
Pratik
Thank you very much for your reply, both (production and sandbox) code coverage are over 80%, the sandbox is "freshly" refresh. So that is why I think it is a Salesforce bug.
Please refer to these links as these might be useful:
https://success.salesforce.com/issues_view?id=a1p30000000T4oRAAS
https://help.salesforce.com/apex/HTViewSolution?urlname=Code-coverage-steps-and-considerations-prior-to-deployments&language=en_US
Thanks,
Pratik
Thank you they were very useful, it seems that was an actual salesforce issue, as after the weekend we were magical able to deploy test classes when before we werent. and this was after 2 weeks.
The oddest thing, was that after cleaning the test history like on the link that you sent me, the org coverage changed from 82% to 58%. So this means that we cant trust developer console overal test coverage? as it seems that this percentage includes historical coverage?
when i was doing the steps of the link
https://help.salesforce.com/apex/HTViewSolution?urlname=Code-coverage-steps-and-considerations-prior-to-deployments&language=en_US
I had the following error on step 2:
SELECT Id FROM ApexCodeCoverageAggregate
I get an error INVALID_TYPE: sObject type 'ApexCodeCoverageAggregate' is not supported
Please check the "Tooling api" checkbox before running above mentioned query in developer console.
Snapshot:
Thanks,
Pratik
P.S. If this answers you question, please mark it as "Best Answer" so it will help other community members too.
Is there a way to fix that?
I have issue because of namespace created. What to do?
There was an unhandled exception. Please reference ID: KEUZUFXS. Error: Faraday::ResourceNotFound. Message: NOT_FOUND: Invalid Action Name: Fulfillment__c.New_Expedition_Leader_Case
Completed the challenge. But test validation written by Salesforce is throwing an error.