-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Salesforce does not currently allow the metadata deploy method to be executed in a unit test - that makes this repo nearly impossible to properly test using Apex tests. As a possible workaround,
- Create an 'extra tests' folder that is only used by the pipeline (similar to Apex-Rollups)
- Include a flow in that folder that uses the invocable methods - this will serve as the 'test'
- In the repo's pipeline, deploy all metadata to a scratch org (including the extra folder)
- Run an apex script to execute the flow, and check the deployment ID for any errors. If any errors occur, fail the build.
jamessimone
Metadata
Metadata
Assignees
Labels
No labels