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
While it's generally best to have a single assertion testing a single function, there are times where it's advantageous having multiple assertions on a test. When multiple assertions are on a test, each assertion creates a log which is then output at the end of all the tests. This can create duplicate outputs for the same test and may be confusing for the user.
Create an option for the user to silence duplicate outputs for a single test in the event there is no error.
The text was updated successfully, but these errors were encountered:
bfrymire
changed the title
Multiple asserts on a test creates multiple outputs
Create option to silence duplicate outputs when using multiple asserts on a test
Mar 3, 2022
While it's generally best to have a single assertion testing a single function, there are times where it's advantageous having multiple assertions on a test. When multiple assertions are on a test, each assertion creates a log which is then output at the end of all the tests. This can create duplicate outputs for the same test and may be confusing for the user.
Create an option for the user to silence duplicate outputs for a single test in the event there is no error.
The text was updated successfully, but these errors were encountered: