Title: Feature Request: Add support for Cucumber for Java · Issue #308 · getappmap/appmap-java · GitHub
Open Graph Title: Feature Request: Add support for Cucumber for Java · Issue #308 · getappmap/appmap-java
X Title: Feature Request: Add support for Cucumber for Java · Issue #308 · getappmap/appmap-java
Description: Currently, the AppMap Java agent does not seem to recognize and record test executions run via Cucumber. When the AppMap Maven plugin is configured for a standard Cucumber for Java project, no .appmap.json files are generated, although t...
Open Graph Description: Currently, the AppMap Java agent does not seem to recognize and record test executions run via Cucumber. When the AppMap Maven plugin is configured for a standard Cucumber for Java project, no .app...
X Description: Currently, the AppMap Java agent does not seem to recognize and record test executions run via Cucumber. When the AppMap Maven plugin is configured for a standard Cucumber for Java project, no .app...
Opengraph URL: https://github.com/getappmap/appmap-java/issues/308
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature Request: Add support for Cucumber for Java","articleBody":"Currently, the AppMap Java agent does not seem to recognize and record test executions run via Cucumber. When the AppMap Maven plugin is configured for a standard Cucumber for Java project, no `.appmap.json` files are generated, although the tests run successfully and the agent appears to attach to the process. This limits the ability to use AppMap's powerful debugging and analysis features in projects that rely on BDD with Cucumber.\n\n**Describe the solution you'd like**\n\nIt would be highly beneficial for the AppMap Java agent to include support for Cucumber. This would likely involve hooking into the Cucumber test execution lifecycle (e.g., `Before` and `After` scenario hooks) to automatically start and stop AppMap recordings for each executed scenario. This would allow developers to generate AppMaps for their BDD tests seamlessly.\n\n**Describe alternatives you've considered**\n\nThere are no clear alternatives at the moment. Without direct support, it's not possible to record AppMaps from our Cucumber test suites, which means we miss out on valuable insights during testing.\n\n**Additional context**\n\nA minimal, reproducible example can be created using the official `cucumber/cucumber-java-skeleton` project.\n\n**Steps to Reproduce:**\n1. Clone the repository: `git clone https://github.com/cucumber/cucumber-java-skeleton.git`\n2. Navigate to the `maven` directory: `cd cucumber-java-skeleton/maven`\n3. Add the `appmap-maven-plugin` to the `pom.xml`:\n ```xml\n \u003cplugin>\n \u003cgroupId>com.appland\u003c/groupId>\n \u003cartifactId>appmap-maven-plugin\u003c/artifactId>\n \u003cversion>1.3.0\u003c/version>\n \u003cexecutions>\n \u003cexecution>\n \u003cgoals>\n \u003cgoal>prepare-agent\u003c/goal>\n \u003c/goals>\n \u003c/execution>\n \u003c/executions>\n \u003c/plugin>\n ```\n4. Run the tests: `mvn test`\n5. **Expected behavior:** An `appmap` directory containing `.appmap.json` files is created.\n6. **Actual behavior:** The tests pass, but no AppMap data is generated.\n","author":{"url":"https://github.com/dividedmind","@type":"Person","name":"dividedmind"},"datePublished":"2025-12-04T16:00:01Z","url":"https://github.com/getappmap/appmap-java/issues/308"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0aa94f4c-cad8-7717-7865-0d7782d8f10e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 93D4:DB09F:6BE516C:894D799:6B0323B6 |
| html-safe-nonce | 720c09342912cce8ed0ef2c0d33da7d4c8efa382055051fd131854ce4630e52d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0Q0OkRCMDlGOjZCRTUxNkM6ODk0RDc5OTo2QjAzMjNCNiIsInZpc2l0b3JfaWQiOiIzNjk4MDAxMjkzNTg0MDQ5MDc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5ca06fc7e20b041caa4726836ee8309217624a22342c64894a66a03f65a6f92d |
| hovercard-subject-tag | issue:3695298541 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getappmap/appmap-java/308/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dd43e5dbdb51dac567724e830950ca395047c006e63dd28a637ee92b4175976e/getappmap/appmap-java/issues/308 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dd43e5dbdb51dac567724e830950ca395047c006e63dd28a637ee92b4175976e/getappmap/appmap-java/issues/308 |
| og:image:alt | Currently, the AppMap Java agent does not seem to recognize and record test executions run via Cucumber. When the AppMap Maven plugin is configured for a standard Cucumber for Java project, no .app... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dividedmind |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/getappmap/appmap-java git https://github.com/getappmap/appmap-java.git |
| octolytics-dimension-user_id | 46610017 |
| octolytics-dimension-user_login | getappmap |
| octolytics-dimension-repository_id | 210409994 |
| octolytics-dimension-repository_nwo | getappmap/appmap-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 210409994 |
| octolytics-dimension-repository_network_root_nwo | getappmap/appmap-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width