[ 
https://issues.apache.org/jira/browse/CAMEL-27524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-27524:
--------------------------------
    Summary: camel-jbang - Citrus - the test check shows the shape of the keys 
an error names  (was: camel-jbang - the Citrus test check shows the shape of 
the keys an error names)

> camel-jbang - Citrus - the test check shows the shape of the keys an error 
> names
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-27524
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27524
>             Project: Camel
>          Issue Type: Sub-task
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.25.0
>
>
> Today an error from {{camel_validate_source}} on a {{*.citrus.it.yaml}} names 
> the wrong key, but not what that part of the test should look like.
> *Proposal*
> For each schema path an error names, add a short YAML skeleton to the answer: 
> the keys, their types and the one-line descriptions from 
> {{citrus-testcase.json}}. Keep it under about 9000 chars. Put it in the 
> answer itself: local models rarely call a lookup tool on their own.
> *Evidence*
> From condition B to C of the benchmark below, valid tests went from 6 to 16 
> of 20 and passing tests from 0 to 4.
> *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)

Reply via email to