davsclaus opened a new pull request, #29625: URL: https://github.com/apache/camel/pull/29625
https://issues.apache.org/jira/browse/CAMEL-26814 The run options form (F2 > Run an Example, Open Project, and a Maven project) can turn on chaos with the Chaos testing checkbox. When the example or folder has chaos scenarios (`test/chaos/*.chaos`), the form now offers them on that row. ←→ picks none or one of them, and the run gets `--chaos=test/chaos/<name>.chaos`, so the scenario's rules are added at startup.  - **An example**: its scenarios come from the files of its catalog entry (the chaos example has `test/chaos/payment-outage.chaos`). The example runs in a folder of its own with its files, so the path is relative. - **A folder or a Maven project**: the files in its `test/chaos` folder, as absolute paths. - **Profile prod**: chaos stays off, so no scenario is passed either, as for the checkbox. - The row shows `Chaos testing, scenario: ◂ payment-outage ▸` once chaos is on, and the footer says `←→ scenario`. Tried live with a TUI built from this branch: the chaos example picked from F2, with chaos on and payment-outage picked, started with `--chaos=test/chaos/payment-outage.chaos`. Its log says "rules from … scenario payment-outage.chaos: 3" and seed 42. The Citrus tests part of the ticket moved to CAMEL-26849 (4.25), as it needs a test screen with reports, as the Chaos screen has. Tests: `RunOptionsFormTest` covers picking a scenario of an example (the row, the footer and the args), the scenarios of a folder, and no scenario with profile prod. All TUI tests pass (2510). Docs: the getting started page of the TUI, with the screenshot, and the Chaos help (`help/chaos.md`). _Claude Code on behalf of Claus Ibsen_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_012nJsFsjqqFiwroeHRWaKbS -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
