Using a Testing Notebook...

Create a function

Open a new testing notebook by going into the file menu and choosing New Programmatic Notebook Testing Notebook. Create a function and overload it for multiple cases:

Write the test cases

Create four test cases for the new function:

Run the tests

Run all the test cases in the testing notebook:

Programmatically...

Create a function

Create a function and overload it for multiple cases:

Write and run the test cases

Using VerificationTest, write tests that cover the defined cases and evaluate to run:

Alternatively, use TestReport to run multiple tests at once:

Extract the test results

Extract the properties of each test case and visualize them separately as a tabbed Dataset: