function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.