Feature Request: Add support for Cucumber for Java
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java
- Lĩnh vực
- testing-qa
Hướng nghiên cứu
Tái hiện vấn đề trong repository cucumber/cucumber-java-skeleton từ thư mục Maven của repository, sử dụng cấu hình appmap-maven-plugin được hiển thị trong pom.xml và chạy mvn test. Được xem là hoàn tất khi các bài kiểm thử vẫn vượt qua và một thư mục appmap chứa các tệp .appmap.json được tạo cho các kịch bản Cucumber.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 88
- Fork
- 17
- Merge trung bình
- 2 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getappmap/appmap-java
-
Labeled methods should always be recorded, even if they match trivial-method filtersCó thể đã có người làm @kgilpin đã nhận 189 ngày trước. Đang mở
getappmap/appmap-java#323 · 1 reaction · 2 người được giao ·
-
Warning with Java 25Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
getappmap/appmap-java#322 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
getappmap/appmap-java#305 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
getappmap/appmap-java#304 ·
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
getappmap/appmap-java#296 ·
Tất cả issue của getappmap/appmap-java
Issue tương tự
-
Upgrade to Spring Pulsar 2.0.8Đang mởstatus: team-only type: dependency-upgrade
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
spring-projects/spring-boot#52099 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
tchiotludo/akhq#3307 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
status: waiting-for-triage type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
spring-projects/spring-security#19847 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
architecture
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
DiegoMicali/MovieFlix#16 ·
-
Bug Unverified
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
cgeo/cgeo#18734 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày