[
https://issues.apache.org/jira/browse/CAMEL-27525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-27525:
--------------------------------
Summary: camel-jbang - Citrus - camel test validate, camel test doc and
camel test catalog (was: camel-jbang - camel test validate, camel test doc and
camel test catalog)
> camel-jbang - Citrus - camel test validate, camel test doc and camel test
> catalog
> ---------------------------------------------------------------------------------
>
> Key: CAMEL-27525
> URL: https://issues.apache.org/jira/browse/CAMEL-27525
> Project: Camel
> Issue Type: Sub-task
> Components: camel-jbang
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.25.0
>
>
> {{camel test}} has init, inspect, run, ps and agent, but no way to check a
> test or look up the DSL. A model that only has a shell (no MCP client) cannot
> check a test before it runs it.
> *Proposal*, each with {{--json}}:
> * {{camel test validate <file>}}: the same checks and answer as
> {{camel_validate_source}};
> * {{camel test doc <action|path>}}: the YAML skeleton of the Citrus test
> check (CAMEL-27524);
> * {{camel test catalog [actions|endpoints|containers|functions]}}: from
> {{citrus-catalog-schema}}.
> Then "install the Camel CLI" is all an AI needs.
> *Background: the benchmark*
> Qwen 3.6 (local, think=false) wrote Citrus YAML tests for 20 Kamelet itests
> and got feedback from {{camel_validate_source}}. Each condition ran once per
> task (k=1):
> * A: one try: 0/20 pass
> * B: up to 6 tries with the validator's errors: 6 valid, 0 pass
> * C: B plus a YAML skeleton of the keys each error names: 16 valid, 4 pass
> * D: C plus one complete example test: 19 valid, 7 pass
> C beat B on 13 tasks, B beat C on 2. The validator is {{CitrusTestChecks}} in
> {{dsl/camel-jbang/camel-jbang-core}} ({{commands/ai}}). On main
> (8d7bf426d764) it already covers an http request and response in one client
> action, several actions in one list item, and log written for echo.
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)