-
Notifications
You must be signed in to change notification settings - Fork 17
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
Improve failure message when not in browser #38
Comments
Hi @TysonMN, I am revisiting this issue and I don't exactly understand the problem (I can't see the logs from the link). The thing is, running the tests outside of the browser is handled by either |
Oh, access to those logs requires being signed in and beyond that those logs were deleted according to the retention policy. That is my fault for not copying more details into this issue. The basic narrative is still here though. When running
but when running
I think the problem is the lack of information in the error message from Is that clear? Please let me know if there is anything else I can do to help resolve this issue. |
@TysonMN I see the problem now, it is probably the call Assert.AreEqual(actual, expected, msg) That is the issue here. I will see what I can do |
Consider this code:
Fable.Mocha/src/Mocha.fs
Lines 44 to 54 in 8bcf86d
I see a lot of effort being put in there to the browser case. In particular,
errorMsg
includesExpected:
andActual:
. I don't see that same level of information in the error message in the non-browser case.More specifically, here is the output for some failed test when running
npm test
on this commit. In particular, line 321 saysError: Should be equal
...but what should be equal?In contrast, here is the corresponding output when running
dotnet test
. In particular, lines 223 to 225 sayThat is much clearer.
Can the error message for the non-browser case be improved to show the expected and actual values?
The text was updated successfully, but these errors were encountered: