-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Include actual and expected when the number of assertions doesn't match the plan. #376
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
Conversation
|
Could be more succinct. Something like, but better:
|
|
@sindresorhus: It's not related to the stack. Check my comment in #102. It's a power-assert thing. |
|
@sindresorhus: Message fixed. |
|
Just wondering here. Now that #371 is merged, should we just use that for this? Is a stack trace really going to be that helpful? Especially since |
|
@jamestalmage I would still want to know which assertion and test that triggers the "incorrect plan count error". |
|
We would be setting it via ( |
|
@sindresourhus, @jamestalmage: yeah, I think we probably should. I'll work on that in the morning. |
|
@ariporad - How close are you to finishing this? |
|
@jamestalmage, @sindresorhus: OK, rebased onto master, and now uses |
…ch the plan. This isn't as good as it could be, as it doesn't have a nice assertion diff, because that's generated by power assert, which does all kinds of other things too that we don't want
|
Tests are failing. |
|
@sindresorhus: Of course they are. Give me a second. |
|
Naturally, They're all false negatives. @sindresorhus: Do AvaError's need |
|
@jamestalmage: ^^^^^^^^^^ |
|
@ariporad Sorry, missed this one. Can you rebase on master and fix the merge conflict?
No |
|
So, what should we do about this PR? |
|
Would like to see this land, but closing for now to clean up inactive PRs. @ariporad Feel free to do a new one if you ever have time ;) |
This isn't as good as it could be, as it doesn't have a nice assertion diff, because that's generated by power assert, which does all kinds of other things too that we don't want
Fixes #102.
@sindresorhus, @jamestalmage, @vdemedes: thoughs?