Loading...
Loading...
Loading...
Attribute | Type | Description | Package Types Applicable |
---|---|---|---|
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.
During installation of packages, test cases are triggered synchronously for source and diff packages. Unlocked and Org-depednendent packages do not trigger any apex test during installation
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
testSynchronous
boolean
Ensure all tests of the package is triggered synchronously
unlocked
org-dependent unlocked
source
diff
Attribute | Type | Description | Package Types Applicable |
---|---|---|---|
sfp during validation checks the apex test coverage of a package depending on the package type. This is beneficial so that you dont run into any coverage issues while deploying into higher environments or building an unlocked package.
However, there could be situations where the test coverage calculation is flaky , sfp provides you with an option to turn the coverage validation off.
skipCoverageValidation
boolean
Skip apex test coverage validation of a package
unlocked
org-dependent unlocked
source
diff
Attribute | Type | Description | Package Types Applicable |
---|---|---|---|
One can utilize this attribute on a package definition is sfdx-project.json to skipTesting while a change is validated. Use this option with caution, as the package when it gets deployed (depending on the package behaviour) might trigger testing while being deployed to production
skipTesting
boolean
Skip trigger of apex tests while validating or deploying
unlocked
org-dependent unlocked
source
diff