Monday 18 December 2017

How to run a single test methods from test classes in Salesforce

We can run specific test methods from test class in Salesforce. If you have many test methods in an Apex test class but you don’t want to run all of them, then you can select the specific method and run in the developer console.

In such scenarios, If you want to run failed test method out of 50 test methods in a class you can do this instead of running entire class.

Follow the below steps:

  • From developer console, select the Test -> New Run 

  • Select the test class and click add selected then select the methods, click Run


No comments:

Post a Comment

Set environment variable for Apache ANT

To use ant in windows, you need to download it and should configure the windows environment variable. Download file here, Ant St...