Feature Request: Add support for Cucumber for Java
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- java
- Domínio
- testing-qa
Direção de pesquisa
Reproduza o problema no repositório cucumber/cucumber-java-skeleton a partir do diretório Maven, usando a configuração de appmap-maven-plugin mostrada em pom.xml e executando mvn test. Está concluído quando os testes continuam passando e um diretório appmap contendo arquivos .appmap.json é gerado para os cenários do Cucumber.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Java
- Estrelas
- 88
- Forks
- 17
- Merge médio
- 2d 2h
- PRs com merge (30d)
- 1
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de getappmap/appmap-java
-
getappmap/appmap-java#323 · 1 reação · 2 responsáveis ·
-
Warning with Java 25 Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
getappmap/appmap-java#322 ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
getappmap/appmap-java#305 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
getappmap/appmap-java#304 ·
-
enhancement
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
getappmap/appmap-java#296 ·
Todas as issues de getappmap/appmap-java
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
-
bug needs triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 94/100
objectionary/hone-maven-plugin#1061 ·
-
type:bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100