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

Claus Ibsen resolved CAMEL-23688.
---------------------------------
    Resolution: Fixed

Resolving: the coverage work is done and shipped in 4.24.0. 19 PRs were merged 
on 2026-10-16/17: #27934, #27963, #27964, #27966, #27967, #27969, #27971, 
#27973, #27974, #27975, #27976, #27977, #27978, #27979, #27980, #27981, #27982, 
#27994, #27995.

They add tests for about 60 commands of camel-jbang-core (cmd/get/log/trace, 
the AI commands against a fake LLM server, init, doc, update run, dependency 
copy, restart, catalog kamelet, version list, ...) and fix the bugs those tests 
found. Line coverage of camel-jbang-core went from 65.7% to 74.1%. Since then, 
the exit-code contract tests of CAMEL-25388 cover every command family.

Not covered: run/export, the interactive commands (debug, shell, history --it), 
init from GitHub, route-topology, infra run, IntegrationLauncher and the k8s 
plugin. More coverage can go in a new ticket.

_Claude Code on behalf of Claus Ibsen (davsclaus)_

> camel-jbang - Add extensive test cover of the CLI commands
> ----------------------------------------------------------
>
>                 Key: CAMEL-23688
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23688
>             Project: Camel
>          Issue Type: Test
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.24.0
>
>
> We should use AI to add extensive coverage of the CLI commands so we can be 
> prepared for a refactor of the code base.
> The code is a bit hacky in some spots and has grown up where its time to 
> refactor and make it more maintainable. 
>  



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to