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

The xunit top-level error value is incorrectly calculated. #56

Open
rhdunn opened this issue Jan 30, 2021 · 0 comments
Open

The xunit top-level error value is incorrectly calculated. #56

rhdunn opened this issue Jan 30, 2021 · 0 comments

Comments

@rhdunn
Copy link

rhdunn commented Jan 30, 2021

The line

errors="{count(//(error:error|xray:test[@result='error']))}"
has a bug calculating the total errors.

This is because an error:error element is added inside the xray:test[@Result='error'] element, so the error gets double counted. Note: this is not an issue with the module processing as it only checks child elements, not all descendant elements.

The following count expression should fix the issue:

count(//(error:error[not(parent::xray:test)]|xray:test[@result='error']))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant