What should the dev...
 
Notifications
Clear all

What should the developer do to speed up test execution?

1 Posts
1 Users
0 Likes
25 Views
Galen
(@mccroygalen)
Noble Member
Joined: 7 months ago
Posts: 357
Topic starter  

A developer notices the execution of all the test methods in a class takes a long time to run, due to the initial setup of ail the test data that is needed to perform the tests.

What should the developer do to speed up test execution?

  • A . Define a method that creates test data and annotate with @testSetup.
  • B . Define a method that creates test data and annotate with @createData
  • C . Reduce the amount of test methods in the class.
  • D . Ensure proper usage of test data factory In all test methods.

Show Answer Hide Answer

Suggested Answer: A

   
Quote
Share: