-
Notifications
You must be signed in to change notification settings - Fork 137
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
Add custom assertions #97
Comments
I need to give it some thought. I find the default assertion messages quite good already, not sure we need to have custom messages. But for assertions inside a loop, you do have a point. |
@bluebird75 The point is that if we have a fixture data set of 100 entries and we use a loop to run a test with those fixture entries and the test fails on 85th entry, it would be great to add to message at least the number of the entry. |
I am working on my own patch for this, with small changes to what you provided. I want to review this deeply because it affects a big number of functions. |
Done with luaunit v3.3 |
It would be very nice to create custom assertions like this:
The text was updated successfully, but these errors were encountered: