Demonstrates how to use ocpp-debugkit ci in a GitHub Actions workflow to
run scenario tests as part of your CI pipeline.
-
Install the CLI:
npm install -g @ocpp-debugkit/toolkit
-
Create scenario files in
scenarios/(JSON files with the scenario format). -
Add the workflow file to
.github/workflows/.
The included workflow (.github/workflows/ocpp-test.yml) runs:
ocpp-debugkit ci --format jsonIt exits 0 if all scenarios pass, 1 if any fail. The JSON output can be parsed by CI tooling for dashboards or notifications.
{
"name": "my-scenario",
"description": "Custom scenario for CI testing",
"trace": { ... },
"expectedFailures": ["FAILED_AUTHORIZATION"],
"assertions": [
{ "type": "event_order", "params": { "actions": ["BootNotification", "Authorize"] } }
]
}