Code covered by the BSD License  

Highlights from
MATLAB xUnit Test Framework

image thumbnail
from MATLAB xUnit Test Framework by Steve Eddins
MATLAB xUnit is a unit test framework for MATLAB code.

testFunctionHandlesTeardownNoSetup
function suite = testFunctionHandlesTeardownNoSetup
% Verify that test file works if it has a teardown function but no setup
% function.
initTestSuite;

function teardown
close all

function test_normalCase
assertEqual(1, 1);

Contact us at files@mathworks.com