getappmap / getappmap/appmap-java
Feature Request: Add support for Cucumber for Java
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 88
- フォーク
- 17
- 平均マージ
- 2日 2時間
- マージ済み PR(30日)
- 1
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
cucumber/cucumber-java-skeleton リポジトリの Maven ディレクトリから、pom.xml に示されている appmap-maven-plugin の設定を使用して mvn test を実行し、問題を再現します。テストが引き続き成功し、Cucumber シナリオ用の .appmap.json ファイルを含む appmap ディレクトリが生成されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- testing-qa
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100