Salesforce Fact #87 | At least one test method

We need to add at least one test method for our test class to run. We cannot add only testsetup method. The class would get saved but will throw runtime error.

This could be helpful in case when we have setup the required data but not yet decided on what to test exactly.

Attached are the screenshots.



 

 

 

 

Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow