+ Start a Discussion
HTS-DevHTS-Dev 

Code Coverage not increasing after writing test classes

Code Coverage is not increasing after writing test classes. The test methods have been passed but code coverage remains 0%  for all the test classes. This is a new issue we are facing (possibly) since the Winter 16 release. Has anyone faced the same issue?
Anup JadhavAnup Jadhav
Have you tried compiling all classes and then running your tests synchronously? You compile by going to Setup -> Apex Class -> Compile all 

 
Arunkumar RArunkumar R
Hi,

You can try out the below steps,

1. Compile all class.
2. Ensure test class stared with @isTest annonation and method should be declared testMethod.
3. Setup --> Build --> Apex Test Execution -->  Options --> Check --> Disable Parellel Apex Testing
4. Setup --> Build --> Apex Test Execution -->  View Test History--> Clear all data
5. Finally run your test class.