@sir_hlony_letaoana/wdio-heal-reporter
v0.1.1
Published
WDIO reporter that captures failures for the self-healing toolkit
Downloads
279
Readme
@sir_hlony_letaoana/wdio-heal-reporter
WDIO reporter that captures test failures and writes a structured heal-failures.json artifact for use with heal-cli and the GitHub Action.
Install
npm install @sir_hlony_letaoana/wdio-heal-reporterSetup
Add to your wdio.conf.ts:
import type { Options } from "@wdio/types";
export const config: Options.Testrunner = {
// ...
reporters: [
"spec",
[
"@sir_hlony_letaoana/wdio-heal-reporter",
{
outputDir: "reports",
},
],
],
};Options
| Option | Type | Default | Description |
|---|---|---|---|
| outputDir | string | "." | Directory to write heal-failures.json |
Output
Writes heal-failures.json to outputDir on run completion:
[
{
"suite": "Login Flow",
"test": "Login Flow > should log in with valid credentials",
"error": "Element with selector '~loginButton' not found",
"timestamp": 1712345678000
}
]Usage with wdio-heal-service
Use both together for full coverage — the service generates healing suggestions, the reporter provides the structured failure log:
services: [['@sir_hlony_letaoana/wdio-heal-service', { outputPath: 'reports/heal-report.json' }]],
reporters: [['@sir_hlony_letaoana/wdio-heal-reporter', { outputDir: 'reports' }]],