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

Combine multiple JUnit XML files from reports folder into single XML file #2593

Open
BG04129 opened this issue Aug 6, 2024 · 1 comment
Open

Comments

@BG04129
Copy link

BG04129 commented Aug 6, 2024

For my test workflow with Karate, it is necessary to merge all JUnit XML reports into a single file.

By default, Karate generates a JUnit report with the following structure for each FEATURE file:

<testsuite>
	<testcase>
		<!-- CONTENT -->
	</testcase>
</testsuite>

The target structure I need is to collect all JUnit reports in in a single file:

<testsuites>
	<testsuite>
		<testcase>
			<!-- CONTENT feature#1 -->
		</testcase>
	</testsuite>
	<testsuite>
		<testcase>
			<!-- CONTENT feature#2 -->
		</testcase>
	</testsuite>
	<!-- etc. -->	
</testsuites>

Is there a switch in Karate that merges all generated JUnit XML reports?

If this function has not yet been implemented, is there any chance to add this feature in a upcoming release?

Thanks in advance

@ptrthomas
Copy link
Member

@BG04129 in our experience, most CI tools can merge the JUnit XML files automatically and this need has never come up before. this is unlikely to get implemented, but I will keep this open for a while in case someone is interested in contributinig

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