Feature Request: Add support for Cucumber for Java

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
testing-qa

Direzione di ricerca

Riproduci il problema nel repository cucumber/cucumber-java-skeleton dalla sua directory Maven, usando la configurazione di appmap-maven-plugin mostrata in pom.xml ed eseguendo mvn test. Il lavoro è completato quando i test continuano a passare e viene generata una directory appmap contenente file .appmap.json per gli scenari Cucumber.

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

Descrizione

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:

  1. Clone the repository: git clone https://github.com/cucumber/cucumber-java-skeleton.git
  2. Navigate to the maven directory: cd cucumber-java-skeleton/maven
  3. Add the appmap-maven-plugin to the pom.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>
    
  4. Run the tests: mvn test
  5. Expected behavior: An appmap directory containing .appmap.json files is created.
  6. Actual behavior: The tests pass, but no AppMap data is generated.
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.