Skip to content

heal

Self-healing tests with AI.

Read more about healing in Self-Healing Tests

plugins: {
heal: {
enabled: true,
on: 'fail',
}
}

More config options are available:

  • healLimit - how many steps can be healed in a single test (default: 2)
  • on - trigger mode. fail (default), file (filter to a path), url (filter to a URL pattern).

Heal always runs on step failures; on= narrows when it engages.

  • fail — heal any failing step (default)
  • file — heal only failures in path=...[;line=...]
  • url — heal only failures when the current URL matches pattern=...

on=step and on=test are not supported and are rejected with an error.

  • config