Skip to main content
Deprecated and retained only for legacy test fragment patches. It is hidden from momentic --help and 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. Defaults to momentic.config.yaml in the current directory.
string
When using workspaces, load the project whose name matches the filter.

Patch selection

string
Patch identifier, formatted as three dash-separated words like potato-apple-cherry.
string
Name of the test the patch should be applied to.

Examples

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