How to Create and Run Test Suite in Salesforce?

How to Create and Run Test Suite in Salesforce?

Test Suites :

"A set of test classes that you want to execute together is called Test Suites. Test suites can be created for the set of test classes that you want to run before creating a package or before deployment. Test suites can be set up from Developer console." [1]

Steps to create test suites :

  1. Open the developer console and select ‘Test’ tab and click on "new suite" from the drop-down.

    TestSuite1

  2. A popup will open, Enter the name of test suite in the text box and click ok.

    testsuite2

  3. Another popup will open, choose the set of test classes from the available test classes to add to your test suite.

    TestSuite3

  4. Click save.

Steps to run the test suite :

  1.   Open the developer console and select ‘Test’ tab and click on ‘new suite Run’ from the drop-down.testSuite4
  2. A popup will open, choose the set of test suites from the available test suites that you want to run.
    testSuite5
  3. Click ‘Run suites’.

-----------------

References:
https://salesforce.stackexchange.com/questions/106637/apex-test-suites-spring-16-release

 

Responses

Popular Salesforce Blogs