Skip to main content
Deprecated and retained only for legacy test fragment patches. It may be removed in a future release.
Applies a generated patch to the local copy of a test. Use it to roll changes suggested by the Momentic dashboard back into version control.

patch

Apply a saved patch to a test.

Common flags

string
Path to the Momentic configuration file. When omitted, Momentic searches the current directory and its parents for momentic.config.yaml or a workspace configuration. Use this flag to select a project when discovery finds more than one.
string
When using workspaces, load the project whose name matches the filter.

Patch selection

string
required
Patch name or ID, such as three dash-separated words like potato-apple-cherry.
string
required
Name or ID of the test the patch should be applied to.

Examples

Apply a patch named potato-apple-cherry to checkout-happy-path: