Claus Ibsen created CAMEL-27523:
-----------------------------------

             Summary: camel-jbang - complete example tests from camel test init 
and the Citrus test check
                 Key: CAMEL-27523
                 URL: https://issues.apache.org/jira/browse/CAMEL-27523
             Project: Camel
          Issue Type: New Feature
          Components: camel-jbang
            Reporter: Claus Ibsen
             Fix For: 4.25.0


For each kind of test (an HTTP server, a container such as Kafka or Postgres, a 
camel cli verify), provide a small, complete example test that runs. {{camel 
test init}} offers it, and the answer of the Citrus test check points to the 
one that fits, the way {{camel_catalog_sample}} does for routes.

One example in the prompt raised the benchmark below from 4 to 7 passing and 
from 16 to 19 valid (condition C to D).

This needs a short design first: where the examples live (Camel, or the Citrus 
catalog) and how the check picks one.

*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