You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For infrastructure tests it is nice to have a link to the infrastructure documentation e.g. "how to fix this failure" in AssertionError message.
But to properly implement this all the assertion messages must be updated with relevant urls. And the next time an engineer will change the test logic and/or assertion message - url will be gone.
Is it possible to somehow assign a text property with an url to the test function / test class and then have some hook which will take assertion message from the test and append the property to it if the property exists?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
For infrastructure tests it is nice to have a link to the infrastructure documentation e.g. "how to fix this failure" in AssertionError message.
But to properly implement this all the assertion messages must be updated with relevant urls. And the next time an engineer will change the test logic and/or assertion message - url will be gone.
Is it possible to somehow assign a text property with an url to the test function / test class and then have some hook which will take assertion message from the test and append the property to it if the property exists?
Beta Was this translation helpful? Give feedback.
All reactions