AppMap `npx` command failed to record tests on Windows

Aperta
#143 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
testing-qa

Direzione di ricerca

Inizia riproducendo il comando npx @appland/appmap record test su Windows nel repository spring-petclinic, usando mvnw test e confrontando il risultato con Linux. Traccia il punto di ingresso di record test e il controllo della creazione di AppMap per scoprire perché i test Maven completati con successo non producono AppMaps registrate. Il lavoro è completato quando il comando Windows registra AppMaps e non segnala più che i test non sono riusciti a crearle.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

  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
Lingua principale
Java
Stelle
88
Fork
17
Merge medio
2g 2h
PR unite (30g)
1

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getappmap/appmap-java

Tutte le issue di getappmap/appmap-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.