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
Holly RuhlandHolly Ruhland 

cannot run test on class

I am not able to run tests in either of our sandboxes. I always get the error "Could not run tests on class<ID> ." I have tried clearing test history, verifying and modifying my options. Compiling all class and then estimating my orgs code coverage and running all tests. Almost every class was failing with the error. I had another admin run the test and it worked. I logged in as her and it did not work, same error. I tried on IE, Chrome, and Firefox as well as a different machine, same error. When I deployed the trigger and test to another sandbox, same error. I deployed to prod using the other admin's code coverage and ran the test in production and it worked. The trigger and unit test are not the problem.
karthikeyan perumalkarthikeyan perumal
Hello, 

its known issue. kinldy have a look for workarounds. 

https://success.salesforce.com/issues_view?id=a1p30000000T0FeAAK

Hope this will helps you. 

Thanks
karthik
 
Holly RuhlandHolly Ruhland
I had tried each of the workarounds in the link prior to logging this and still the same error occurs.  None of the workarounds resolve this error for me in either sandbox. 
Holly RuhlandHolly Ruhland
But thank you for the reply Karthnik, I wish one of those had worked!