Cannot distinguish between generated and manually specified assertion messages #5836
Comments
I'm confused by your request, are you complaining about how your choice of test runner handles the assertions in v0.11? Because without a custom message our assertion generates
and with
|
The key point is that a test runner can read the expected, operator and As it stands there's no way to tell if the message property is useless On 27 Jul 2013, at 20:48, Timothy J Fontaine notifications@github.com I'm confused by your request, are you complaining about how your choice of
and with assert.strictEqual('1', 1, "Foo bar") — |
Ok, so you want possibly a flag on |
Seems like a sensible approach, I'll whip something up On 27 Jul 2013, at 21:11, Timothy J Fontaine notifications@github.com Ok, so you want possibly a flag on AssertionError that indicates — |
Since 6101eb1 landed.
AssertionError can take message, expected and actual options, if message is not passed, it gets generated from expected and actual.
Within test runner output, this leads to some duplication in the output:
Ideally I'd like to only display the expected and actual, unless a custom message has been passed - but as it stands I can't see any way to tell the difference.
The text was updated successfully, but these errors were encountered: