getappmap / getappmap/appmap-java

AppMap `npx` command failed to record tests on Windows

Đang mở
#143 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

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

Mô tả

  1. I cloned https://github.com/spring-projects/spring-petclinic
  2. I executed npx @appland/appmap record test -d C:\Users\jansorg\source\spring-petclinic, as suggested by the install guide wizard
  3. I selected "Maven" als build system
  4. I configured it to use "mvnw test" as test command to use the Maven wrapper, which is part of the repository
  5. I set -1 as test timeout
  6. The tests executed successfully, but at the end the npx command complained that no tests were recorded and offered to submit a bug report. The same project is successfully creating AppMap files on Linux.
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.springframework.samples.petclinic.vet.VetTests
2022-09-12 14:45:26.414  INFO 18904 --- [ionShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2022-09-12 14:45:26.414  INFO 18904 --- [ionShutdownHook] org.ehcache.core.EhcacheManager          : Cache 'vets' removed from EhcacheManager.
2022-09-12 14:45:26.414  INFO 18904 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown initiated...
2022-09-12 14:45:26.414  INFO 18904 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.
2022-09-12 14:45:26.429  INFO 18904 --- [ionShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2022-09-12 14:45:26.429  INFO 18904 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource       : HikariPool-2 - Shutdown initiated...
2022-09-12 14:45:26.429  INFO 18904 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource       : HikariPool-2 - Shutdown completed.
[INFO]
[INFO] Results:
[INFO]
[WARNING] Tests run: 41, Failures: 0, Errors: 0, Skipped: 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  29.043 s
[INFO] Finished at: 2022-09-12T14:45:26+02:00
[INFO] ------------------------------------------------------------------------

! The test commands failed to create AppMaps

Help is available from the AppMap support team! If you want assistance, the test command,
error message, exit code, and APPMAP environment variables can be uploaded securely to the
AppMap ZenDesk support portal. The AppMap team will respond to you by email, so we'll need your
email address to open the support request.

! Would you like to open a support request? No

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lệnh npx @appland/appmap record test trên Windows đối với repository spring-petclinic, sử dụng mvnw test và so sánh kết quả với Linux. Truy vết điểm vào của record test và bước kiểm tra việc tạo AppMap để tìm hiểu vì sao các bài kiểm thử Maven thành công lại không tạo ra AppMaps được ghi lại. Công việc được xem là hoàn tất khi lệnh trên Windows ghi lại các AppMaps và không còn báo rằng các bài kiểm thử không tạo được chúng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
testing-qa
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
38/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.