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 TestCreate, write tests that cover the defined cases:
Use TestReport to run multiple tests at once:
Extract the test results
Use the "ResultsDataset" property to extract the properties of each test case and visualize them separately as a Dataset: