Continue On Error
| Attribute | Type | Description | Package Types Applicable |
|---|---|---|---|
| continueOnError | boolean | Record validation/test/coverage failures for this package but do not fail the overall sfp validate run |
|
By default, a single package failing validation (deployment, apex tests, or coverage) fails the entire sfp validate run. The continueOnError package descriptor lets you opt out of that behaviour for a specific package — failures are still surfaced in the validation output (and the validation-error.md report), but they do not flip the run's exit code.
This is useful when a package is in transition (e.g. a legacy component being refactored, or a flaky test suite that's already tracked separately) and you want validate to keep checking the rest of the project rather than short-circuiting on that one package.
// Demonstrating how to use continueOnError
{
"packageDirectories": [
{
"path": "legacy-reports",
"package": "legacy-reports",
"versionDescription": "Legacy reporting package being refactored",
"versionNumber": "2.1.0.NEXT",
<a data-footnote-ref href="#user-content-fn-1">"continueOnError": true</a>
},
...
]
}Use this attribute deliberately — it can hide real regressions. Pair it with an issue tracker reference so the underlying failure isn't forgotten.