allure-java icon indicating copy to clipboard operation
allure-java copied to clipboard

Test Running Halted When There are Test Cases Failed in the Karate Framework

Open ewangtns opened this issue 1 year ago • 2 comments

Describe the Bug

I used the Allure-Karate and Allure-Maven to build my karate project and to generate allure report.

When I run "mvn clean test" in my local, it will run well and generate the allure report if there are no test cases failed. But if I have failed test cases in my test suites, it will keep running forever and won't terminate.

Steps to Reproduce

  1. Add plugins Allure-Karate and Allure-Maven in the pom file.
  2. mvn test -Dkarate.options="classpath:path/to/your/feature.feature" - run a specific feature file
  3. If there is a failed test case in the feature file, it will halt (keep running forever) and won't finish running.

Expected Behaviour

Although we have failed test cases in the test suite, we still can finish running and generate the allure report.

Screenshots or Additional Context

No response

What Language are you using?

Java

What Framework/Allure Integration you are using?

allure-karate

What version of Allure Integration you are using?

2.27.0

What version of Allure Report you are using?

2.14.0

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

ewangtns avatar May 01 '24 00:05 ewangtns

Could you please provide a sample project (GitHub repo) to reproduce the problem?

baev avatar May 08 '24 08:05 baev

I am facing the same issue!

Shyam3004 avatar Jun 21 '24 05:06 Shyam3004

¿Podrías proporcionar un proyecto de muestra (repositorio de GitHub) para reproducir el problema?

Hello, I am currently having the same problem when it is for a parallel process, I share my code with you, you only need to change the test status to 200 for the reported incident to occur.

https://github.com/fromeroc9/karate-allure-reports

fromeroc9 avatar Jul 03 '24 14:07 fromeroc9

@fromeroc9 thanks, it helped a lot!

see https://github.com/allure-framework/allure-java/pull/1065

baev avatar Jul 05 '24 14:07 baev