Feature Request: Add support for Cucumber for Java
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- java
- 領域
- testing-qa
調査の方向性
cucumber/cucumber-java-skeleton リポジトリの Maven ディレクトリから、pom.xml に示されている appmap-maven-plugin の設定を使用して mvn test を実行し、問題を再現します。テストが引き続き成功し、Cucumber シナリオ用の .appmap.json ファイルを含む appmap ディレクトリが生成されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
Describe the solution you'd like
It 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.
Describe alternatives you've considered
There 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.
Additional context
A minimal, reproducible example can be created using the official cucumber/cucumber-java-skeleton project.
Steps to Reproduce:
- Clone the repository:
git clone https://github.com/cucumber/cucumber-java-skeleton.git - Navigate to the
mavendirectory:cd cucumber-java-skeleton/maven - Add the
appmap-maven-pluginto thepom.xml:<plugin> <groupId>com.appland</groupId> <artifactId>appmap-maven-plugin</artifactId> <version>1.3.0</version> <executions> <execution> <goals> <goal>prepare-agent</goal> </goals> </execution> </executions> </plugin> - Run the tests:
mvn test - Expected behavior: An
appmapdirectory containing.appmap.jsonfiles is created. - Actual behavior: The tests pass, but no AppMap data is generated.
- 主要言語
- Java
- スター
- 88
- フォーク
- 17
- 平均マージ
- 2日 2時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getappmap/appmap-java のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
getappmap/appmap-java#333 ·
-
appmap.yml packages path matching zero classes yields a healthy-looking recording with no warningオープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
getappmap/appmap-java#332 · コメント 1 件 ·
-
Git metadata dropped in a git worktree (.git file with gitdir: pointer not followed)対応中かも @dividedmind が 3 日前に担当しました。 オープン
getappmap/appmap-java#331 · コメント 1 件 · 担当者 1 名 ·
-
Labeled methods should always be recorded, even if they match trivial-method filters対応中かも @kgilpin が 193 日前に担当しました。 オープン
getappmap/appmap-java#323 · リアクション 1 件 · 担当者 2 名 ·
-
Warning with Java 25オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
getappmap/appmap-java#322 ·
getappmap/appmap-java の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
lugassawan/swe-workbench#799 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
Vakore/ZappierGames#89 ·
-
1.20.1-FORGE Module-Enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
MehVahdJukaar/WoodGood#1340 · コメント 1 件 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
PssbleTrngle/dye_depot#123 ·
-
bug question
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100