Code covered by the BSD License  

Highlights from
MATLAB xUnit Test Framework

image thumbnail

MATLAB xUnit Test Framework

by

 

31 Jan 2009 (Updated )

MATLAB xUnit is a unit test framework for MATLAB code.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

CommandWindowTestRunDisplay
classdef CommandWindowTestRunDisplay < TestRunDisplay
    %CommandWindowTestRunDisplay Print test suite execution results to Command Window.
    %   CommandWindowTestRunDisplay is a subclass of TestRunMonitor.  If a
    %   CommandWindowTestRunDisplay object is passed to the run method of a
    %   TestComponent, such as a TestSuite or a TestCase, it will print information
    %   to the Command Window as the test run proceeds.
    %
    %   CommandWindowTestRunDisplay methods:
    %       testComponentStarted  - Update Command Window display
    %       testComponentFinished - Update Command Window display
    %       testCaseFailure       - Log test failure information
    %       testCaseError         - Log test error information
    %
    %   CommandWindowTestRunDisplay properties:
    %       TestCaseCount         - Number of test cases executed
    %       Faults                - Struct array of test fault info
    %
    %   See also TestRunLogger, TestRunMonitor, TestSuite
    
    %   Steven L. Eddins
    %   Copyright 2008-2010 The MathWorks, Inc.
    
    methods
        function self = CommandWindowTestRunDisplay
            self = self@TestRunDisplay(1);
        end
    end
    
end

Contact us