allure-framework / allure-java

Allure integrations for Java test frameworks
Apache License 2.0
340 stars 218 forks source link

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

Open ewangtns opened 2 months ago

ewangtns commented 2 months ago

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

baev commented 1 month ago

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

Shyam3004 commented 1 week ago

I am facing the same issue!