+1 vote
25 views
by (163k points)

What are three ways for a developer to execute tests in an Org from the following options ?

  1. Bulk API
  2. Tooling API
  3. Setup Menu
  4. SalesforceDX
  5. MetaData API

In my opinion, it should be Tooling API, Setup Menu, and MetaData API. Because -

Setup Menu - By browsing to setup->Apex Test Execution
Tooling API - You can also run tests using the Tooling REST API. Use the /runTestsAsynchronous/ and /runTestsSynchronous/ endpoints to run tests asynchronously or synchronously.
MetaData API - Not sure about it. But found a link - Unit tests executed via metadata API failing on call to system.test.startTest

Reference link- https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_unit_tests_running.htm

Also how can a developer check the test coverage of active Process Builder and Flows before deploying them in a change set?

Please suggest your opinion with references and steps to produce. Thanks

1 Answer

Welcome to Memory Exceeded, where you can ask questions and receive answers from other members of the community.
...