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
SatyendraSatyendra 

Need help for running separate test classes

Hi Guys,

I am working on APEX unit test case and need help on following points

  1. I want to run test cases for more than one apex class as a single event. Suppose I have 5 apex classes and i have made changes in 2 classes, i want to run test cases for these 2 classes only and not for all the classes. Don't want to use "Run All Tests" feature. Is it possible ?
  2. Instead of writing test methods in the same apex class, i want to create separate classes for the test cases and want to run those classes to check the code coverage. I tried one but it is giving me the coverage of the same test class and not for the class for which i have written this test class. Is it possible to do this?
Thanks in advance
Satyendra