Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JUnit XML Reports ignore @fail anontation #2660

Open
daniel-vergien-bdr opened this issue Mar 3, 2025 · 3 comments
Open

JUnit XML Reports ignore @fail anontation #2660

daniel-vergien-bdr opened this issue Mar 3, 2025 · 3 comments
Assignees
Milestone

Comments

@daniel-vergien-bdr
Copy link

JUnit XML reports ignore the @fail annotation from #2641
The reason is that the ReportUtils check for the existence of an error step and ignore the overall result: https://github.com/karatelabs/karate/blob/develop/karate-core/src/main/java/com/intuit/karate/report/ReportUtils.java#L219

@daniel-vergien-bdr
Copy link
Author

@ptrthomas there is a mr with a fix. The karate json reports checks for the overall failure property of the result. The cucumber reports seems to not care about it at all. But I can't find tests for it, and have no cucumber json knowledge to check if it's ok.

@ptrthomas
Copy link
Member

@daniel-vergien-bdr ok, meanwhile if you need a release, I have heard that there is some trick to getting a JAR published to a public URL using jitpack: https://x.com/maxandersen/status/1277116051629768704

I have never had time to try it, if you do - let me know

ptrthomas added a commit that referenced this issue Mar 3, 2025
@ptrthomas ptrthomas added the fixed label Mar 3, 2025
@daniel-vergien-bdr
Copy link
Author

@ptrthomas jitpack build seems to work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants