[b4b313]: / matlab_xunit_3.1 / matlab_xunit / xunit / TestComponent.m

Download this file

59 lines (50 with data), 1.9 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
classdef TestComponent < handle
%TestComponent Abstract base class for TestCase and TestSuite
%
% TestComponent methods:
% run - Run all test cases in test component
% print - Display summary of test component to Command Window
% numTestCases - Number of test cases in test component
% setUp - Initialize test fixture
% tearDown - Clean up text fixture
%
% TestComponent properties:
% Name - Name of test component
% Location - Directory where test component is defined
%
% See TestCase, TestSuite
% Steven L. Eddins
% Copyright 2008-2009 The MathWorks, Inc.
properties
Name = '';
Location = '';
end
properties (Access = 'protected')
PrintIndentationSize = 4
end
methods (Abstract)
print()
%print Display summary of test component to Command Window
% obj.print() displays information about the test component to the
% Command Window.
run()
%run Execute test cases
% obj.run() executes all the test cases in the test component
numTestCases()
%numTestCases Number of test cases in test component
end
methods
function setUp(self)
%setUp Set up test fixture
% test_component.setUp() is called at the beginning of the run()
% method. Test writers can override setUp if necessary to
% initialize a test fixture.
end
function tearDown(self)
%tearDown Tear down test fixture
% test_component.tearDown() is at the end of the method. Test
% writers can override tearDown if necessary to clean up a test
% fixture.
end
end
end