Activity Forums Salesforce® Discussions How do I write a good unit test in Salesforce?

  • Deepak

    Member
    May 8, 2020 at 4:31 pm

    A unit test should:

    1. Set up all conditions for testing.
    2. Call the method (or Trigger) being tested.
    3. Verify that the results are correct.
    4. Clean up modified records.
  • Pooja

    Member
    May 11, 2020 at 5:49 am

    *Set up all conditions for testing.
    *Call the method (or Trigger) being tested.
    *Verify that the results are correct.
    *Clean up modified records.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos