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

Populate Test Suite Attributes #168

Merged
merged 1 commit into from
Nov 22, 2017

Conversation

FuadBalashov
Copy link
Contributor

@FuadBalashov FuadBalashov commented Jun 1, 2017

The specification for the testsuites tag in Junit includes multiple attributes, as per: http://llg.cubic.org/docs/junit/
This commit populates disabled, errors, failures, tests and time.
It does so by recursively collecting those metrics from nested testsuite tags in jasmineDone and then passing them to wrapOutputAndWriteFile.

@FuadBalashov FuadBalashov force-pushed the populateTestsuitesTag branch 2 times, most recently from ab44324 to 0264d28 Compare June 1, 2017 22:44
@FuadBalashov
Copy link
Contributor Author

Hello! As described in the commit description I have added logic to include test failures, tests, errors and time in the testsuites tag. This more closely matches the structure of the linked junit schema and makes it easier to have other infrastructure read the generated xml files for the number of failures and disabled tests.

@bloveridge @larrymyers I am not sure who maintains this repo so I tagged both of you. Please let me know how to proceed!

@FuadBalashov
Copy link
Contributor Author

FuadBalashov commented Jun 1, 2017

Oh, also it looks like some tests are failing with the newest version of node (8) which came out 2 days ago. I think this is an issue in master and I don't think I have touched any code related to them.

self.formatSuiteData = function(suite) {
return {
disabled: suite._disabled || 0,
errors: 0,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on second thought it probably makes sense to remove errors to reflect the structure of the inner testsuite tags.

@FuadBalashov FuadBalashov force-pushed the populateTestsuitesTag branch from 0264d28 to 2ad72aa Compare June 2, 2017 15:12
@FuadBalashov
Copy link
Contributor Author

ping: @bloveridge @larrymyers

The specification for the testsuites tag in Junit includes
multiple attributes, as per http://llg.cubic.org/docs/junit/
This commit populates disabled, errors, failures, tests and time.
It does so by recursively collecting those metrics from nested
testsuite tags in jasmineDone and then passing them to
wrapOutputAndWriteFile.
@FuadBalashov FuadBalashov force-pushed the populateTestsuitesTag branch from 9c29cdc to d2bcca4 Compare June 6, 2017 13:16
@FuadBalashov
Copy link
Contributor Author

ping: @bloveridge @larrymyers

1 similar comment
@FuadBalashov
Copy link
Contributor Author

ping: @bloveridge @larrymyers

@kraenhansen
Copy link
Contributor

@FuadBalashov I can verify the same tests failing on #170 unrelated to the changes that I've made.

@FuadBalashov
Copy link
Contributor Author

ping: @bloveridge @larrymyers

@Brian-Kaplan
Copy link

Any movement on this?

@putermancer
Copy link
Collaborator

Thanks for the patch, and sorry for the abysmally slow response.

@putermancer putermancer merged commit 1091e8f into larrymyers:master Nov 22, 2017
@FuadBalashov
Copy link
Contributor Author

Thank you @bloveridge! Any prediction on when the next release will be?

@putermancer
Copy link
Collaborator

It will be within the next week. There is still one more pull request that might get updated and merged in that time. Look for the new reporters version by Dec 1.

@FuadBalashov
Copy link
Contributor Author

Hey @bloveridge it looks like there hasn't been a release yet. Do you have an update?

@putermancer
Copy link
Collaborator

Just published 2.3.0. Sorry for the delay.

@FuadBalashov
Copy link
Contributor Author

Thank you, looking forward to using the new release

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

Successfully merging this pull request may close these issues.

4 participants