f2par0 opened a new pull request, #767:
URL: https://github.com/apache/camel-karaf/pull/767
Closes #766
## What
Adds a project skill, `.claude/skills/camel-karaf-feature-itest/`, for
agents asked to write a new `tests/features/camel-<feature>` integration test
on the shared `tests/camel-integration-test` framework. It is based on what the
75 existing test modules have in common.
- **`SKILL.md`**: the workflow:
- pick one of six patterns used by the existing modules (dataformat or
language, container back-end, consumer only, in-JVM server or free port,
Blueprint, several scenarios in one module);
- the naming chain that derives the feature, bundle, `direct:`/`mock:`
endpoints and `@Component` name from the class name;
- which code runs inside Karaf (route supplier) and which outside
(external resources), and how values pass between them as system properties;
- build, run and debug commands;
- a table of common failures. Missing bundles in `camel-features.xml` are
the usual real finding (#713, #665, #648), so the skill says to fix the feature
rather than the test;
- a checklist before the PR.
- **`reference.md`**: copy-ready templates (pom, route supplier, ITest,
external resources, Blueprint XML), example modules for each pattern, and a
summary of the framework classes.
- **`list-untested-features.sh`**: lists the `camel-*` features in
`camel-features.xml` that no test covers. Right now 347 of 424 have no test.
- **`AGENTS.md`**: a short pointer in the Tests conventions so agents other
than Claude Code find the guide too.
Documentation and tooling only. No production or test code changes.
## Found while surveying (not fixed here)
- `tests/features/camel-velocity/src/test/test/.../CamelVelocityITest.java`
is in `src/test/test` instead of `src/test/java`, so the test is never compiled
or run.
- `CamelFtpITest` has many unused imports. `CamelHttpITest` and
`CamelKafkaITest` use raw `GenericContainerResource` types.
These can go in separate follow-up PRs.
_Claude Code on behalf of François de Parscau_
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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]