Test Synchronously
Attribute
Type
Description
Package Types Applicable
testSynchronous
boolean
Ensure all tests of the package is triggered synchronously
unlocked
org-dependent unlocked
source
diff
sfp by default attempts to trigger all the apex tests in a package in asynchronous mode during validation. This is to ensure that you have a highly performant apex test classes which provide you fast feedback.
If you have inherited an existing code base or your unit tests have lot of DML statemements, you will encounter test failuers when a tests in package is triggered asynchronously. You can instruct sfp to trigger the tests of the package in a synchronous mode by setting 'testSynchnronous
as true
Last updated
Was this helpful?