You need to sign in to do that
Don't have an account?
louiss
0% Overall Code Coverage - Nothing Failing Tests
Hello!
I'm hoping someone can help. I've got 0% code coverage in a production org I'm working on but the only tests failing 7/363 are from managed packages.
Is there anything else that can cause the code coverage issue?
Thanks!
I'm hoping someone can help. I've got 0% code coverage in a production org I'm working on but the only tests failing 7/363 are from managed packages.
Is there anything else that can cause the code coverage issue?
Thanks!
1, Compile all your classes
2. Clear test data
3. Run all test again
All Answers
1, Compile all your classes
2. Clear test data
3. Run all test again
I had the same issue and I managed to solve it in a different way as the suggested answer didn't help me. I'm posting here the solution in case somebody in future faces the same problem and needs a reliable way to get the Code Coverage.
For me the Test Code Coverage only appears if I run the tests from Setup: Setup > Build > Develop > Apex Test Execution > Select Tests.. > (select your namespace and test classes) > Run
This way I get both the code highlight and coverage percentage in Developer Console immediately after the tests completes. On the other hand, if I run the tests directly from Developer Console I get non of those.