-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Mocha programmatic API doesn't report retries #2188
Comments
+1 The retry feature is great. We just need it supported in the programmatic API as well. |
kk I'll try to take a look asap :) |
@cletusw @justspamjustin So every time In your scenario, since retries clone the tests, the original test that was passed in (or globbed by Mocha, for that matter) isn't considered cc @danielstjules @boneskull for discussion. |
So does that mean we can't use the data in the "suite end" event? On Mon, Apr 11, 2016, 6:35 PM Long Ho notifications@github.com wrote:
|
that I'm not sure, @danielstjules @boneskull ? maybe have Suite store the list of "output" test results? |
@longlho It seems to me that if we can externally listen to all the |
@longlho Thanks for looking into this, btw. |
sure np :) I can certainly put in a PR of some sort to address this issue (which I think is either deep cloning the tests and/or store test results separately in the Suite). Kinda waiting for @danielstjules & @boneskull to chime in. |
@danielstjules @boneskull Any update on this? This makes the data provided to the |
I am a bot that watches issues for inactivity. |
not stale |
any progress ?? |
When using Mocha programmatically with the new retries feature, tests that fail the first time but eventually succeed are not marked as "passed" in the suite's
tests
array.index.js:
test.js:
Output:
Notice that the test objects in Context are correctly marked with
state: "passed"
, but the one in thetests
array is from the first run (note_currentRetry: 0
) and has nostate
property.The text was updated successfully, but these errors were encountered: