AppMap `npx` command failed to record tests on Windows

未关闭
#143 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
java
领域
testing-qa

调研方向

首先,在 Windows 上针对 spring-petclinic 仓库使用 mvnw test 重现 npx @appland/appmap record test 命令,并将结果与 Linux 进行比较。跟踪 record test 的入口点和 AppMap 创建检查,找出为什么成功的 Maven 测试不会生成记录的 AppMaps。完成的标准是 Windows 命令能够记录 AppMaps,并且不再报告测试未能创建它们。

由索引模型根据 Issue 内容生成。

描述

  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
主要语言
Java
星标
88
派生
17
平均合并
2 天 2 小时
30 天内合并 PR
1

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

getappmap/appmap-java 的其他 Issue

查看 getappmap/appmap-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。