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

Add err to test.retryErr list if retrying the test #2529 #2901

Closed
wants to merge 1 commit into from
Closed

Add err to test.retryErr list if retrying the test #2529 #2901

wants to merge 1 commit into from

Conversation

LToronto
Copy link

Adds the ability to see the errors from earlier attempts. Occasional
the test state is different during the retry and the last test error is
not helpful. Is this case the first error (test.retryErr[0]) is
useful.

Adds the ability to see the errors from earlier attempts.  Occasional
the test state is different during the retry and the last test error is
not helpful.  Is this case the first error (test.retryErr[0]) is
useful.
@jsf-clabot
Copy link

jsf-clabot commented Jun 22, 2017

CLA assistant check
All committers have signed the CLA.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 88.405% when pulling 033dd02 on LToronto:retryErr into 1f270cd on mochajs:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 88.405% when pulling 4e62523 on LToronto:retryErr into 1f270cd on mochajs:master.

@LToronto
Copy link
Author

It looks like node version 0.10 is broken in master. There's nothing I should do here to fix it.

@ScottFreeCode
Copy link
Contributor

Hi @LToronto, thanks for the PR! And sorry about the delay responding to it.

One question I have about this is whether it would suffice to emit an event when a test is retried, that would contain the failure info such that you could save it if you want to or print it at the time it happens (rather than having to wait until the last test attempt ends to get the list of retried failures). While that's a little more work on the part of the consumer of that info, I believe it serves a superset of the use cases of this approach; I've also discussed that aspect in #2529 (comment) and that other approach should be implemented by #2926 if you want to check it out and try it.

(By the way, the Node 0.10 failure should be fixed in master now if you want to rebase -- or add tests.)

@LToronto
Copy link
Author

Closed in favor of #2926

@LToronto LToronto closed this Sep 22, 2017
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