问题描述
尽管我们使用空手道举报比任何人都需要的更多.我仍然对将Allure集成到混合中很感兴趣.
We are using Karate heavily for various projects and though the report generated using karate Reports are more than anyone would need. I am still interested in getting Allure integrated in the mix.
添加了allure-junit4依赖性并添加了allure侦听器
Added allure-junit4 dependency and added allure listener
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20</version>
<configuration>
<argLine>
-javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
<!-- -Dcucumber.options="--plugin io.qameta.allure.cucumberjvm.AllureCucumberJvm"-->
</argLine>
<properties>
<property>
<name>listener</name>
<value>io.qameta.allure.junit4.AllureJunit4</value>
</property>
</properties>
</configuration>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>
现在创建了诱人的结果,我可以看到报告,但是它几乎是空白的.
Now allure-results is getting created and I can see report but it's almost blank.
如何获得基于空手道项目的吸引力报告?
How can I get allure report generated on karate based project?
推荐答案
如果Allure支持Cucumber JSON输出,则应该可以使用.否则,建议您与Allure团队合作.
If Allure supports the Cucumber JSON output it should work. Else suggest you take this up with the Allure team.
您可以引用此线程(以了解范围): https://github.com/intuit/karate/issues/619
You can refer to this thread (for Extent): https://github.com/intuit/karate/issues/619
这篇关于如何在空手道API自动化项目中集成Allure Report的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!