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
Marcin TrofiniakMarcin Trofiniak 

Test coverage error

So i have manage package that has been tested and riched 80%. But when we moved it to new org and done test we saw only 50%. What is more big test class ( 290 lines ) was included in to test coverage with 0% of cover. Did any one have same issue. How to make it excluded from test? No other test class is there just this one. It is begining with @isTest
pradeep kumar yadavpradeep kumar yadav
To solve this problem follow steps:- 
1. Copy code from that test class into some text editor.
2. Delete that test class.
3. Goto Apex classes from SETUP.
4. Click on New and copy the code from the text editor to that class and save.
It will remove from test class coverage.


Note: - If you get solution marked it as best answer to help others easily find their solution.