While running unit Tests in my Sandbox, i got the Following Error and i cannot continue with tests. Message is:
Failed to enqueue tests.: An unknown exception occurred.
Any ideas ?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
The reason of the given error message is that maximum amount of unit tests executions per 24 hours is reached.
According to the documentation:
The maximum number of test classes you can run per 24-hour period is the greater of 500 or 10 multiplied by the number of test classes in the org. For sandbox and Developer Edition organizations, this limit is the greater of 500 or 20 multiplied by the number of test classes in the org.
One of the approaches could be to clone a sandbox (if there are unused licenses of same type) and run tests there.