Sometimes when I have data-driven tests the default error messages are not very helpful
for grouped_item <- grouped_items do
# Non-grouped items should be listed with no_route_defined for the test
assert expected_url == :no_route_defined, "my message"
That seems like a bug in ExUnit to me, actually. Passing a custom error message shouldn't cause that other information to disappear. I'd raise that there.
Sometimes when I have data-driven tests the default error messages are not very helpful
Without
"my message"
the error looks like:With
"my message"
the error looks like:What I would want is a new
assert
-type test macro that would accept a message and be purely additional resulting in an error like:That way I don't have to go out of my way every time to put
/activities
and:no_route_defined
into the message passed to assert.Is that in scope for this library?