You need to sign in to do that
Don't have an account?
Robert Wambold
I renamed my class and test class and now I cannot get above 72% Code Coverage.
Hello All,
I developed a simple Invocable APEX class and with my test class acheived 100% code coverage.
So...I decided to change the name and now I cannot get above 72%. The only differnce is the name of the classes. What am I doing wrong?
Thanks,
Bob
Sorry for this issue you are facing.
The test coverage isn't maintained permanently. To regenerate your test coverage, just run all of your tests (although it is important to know that this value changes depending on if you are running it in Eclipse, etc for some reason).
To get a good idea of your code coverage, do the following:
- Clear Code Coverage (in red)
- Compile all cases (in blue)
- Run All Tests (in green)
- Estimate your organization's code coverage (in orange)
Hope this helps.Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra
All Answers
Sorry for this issue you are facing.
The test coverage isn't maintained permanently. To regenerate your test coverage, just run all of your tests (although it is important to know that this value changes depending on if you are running it in Eclipse, etc for some reason).
To get a good idea of your code coverage, do the following:
- Clear Code Coverage (in red)
- Compile all cases (in blue)
- Run All Tests (in green)
- Estimate your organization's code coverage (in orange)
Hope this helps.Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra
Hi Nagendra,
Thanks for your reply. I was able to get back to 100% Code Coverage by deactivating the process which called my Apex class then compiling and running tests.
so...I created a change set and sent my code to Production org only to receive this message.
My code worked perfectly in Sandbox...maybe I am overdue for a refresh of my Sandbox?
Thanks,
Bob