gambas-source-code/.info

256 lines
3 KiB
Text
Raw Normal View History

2016-09-21 10:25:39 +02:00
#ATestContainer
C
'This abstract class identifies TestContainer classes. TestContainers are a
'classes that hold different test case methods.
Name
r
s
CaseNames
p
String[]
Result
p
TestResult
2016-09-21 10:32:52 +02:00
'The current test case
2016-09-21 10:25:39 +02:00
R
p
TestResult
2016-09-21 10:32:52 +02:00
'The current test case
2016-09-21 10:25:39 +02:00
Debug
p
b
_new
m
[(ShowDebug)b]
RunCase
m
(oCase)_ITestCase;(oTestResult)TestResult;
2016-09-21 10:25:39 +02:00
SetupEach
m
TearDownEach
m
SetupContainer
m
TearDownContainer
m
#Runner
2016-09-19 23:42:46 +02:00
C
2016-09-21 02:05:34 +02:00
Suite
p
TestSuite
2016-09-20 23:49:28 +02:00
2016-09-21 02:05:34 +02:00
_new
2016-09-20 23:49:28 +02:00
m
ShowTestForm
2016-09-20 23:49:28 +02:00
m
2016-09-21 02:05:34 +02:00
'Show the Test Runner Form
Test
m
2016-09-20 23:49:28 +02:00
[(ContainerName)s(CaseName)s(ShowDebug)b]
_RunTests
2016-09-19 23:42:46 +02:00
m
2016-09-21 02:05:34 +02:00
(Result)TestResult;[(ContainerName)s(CaseName)s(ShowDebug)b]
'Run all tests, optional limited by Container or TestCaseName. TestResult contains .
_PrintResult
m
(Res)TestResult;
2016-09-21 02:05:34 +02:00
GetAllTestContainerNames
M
String[]
2016-09-19 23:42:46 +02:00
2016-09-20 23:49:28 +02:00
#TestCase
_ITestCase
2016-09-20 23:49:28 +02:00
C
'The TestCase class is responsible for executing a specific test case.
'The test case to be executed is specified through the Name and TestContainer
'properties in the class. The Run method will call the appropriate Setup
'and TearDown methods for the test case as well as executing the test case
'method itself.
Name
r
s
'Name of the test case
Container
r
2016-09-21 10:25:39 +02:00
ATestContainer
2016-09-20 23:49:28 +02:00
'Reference to the test container containing the test method to be executed.
_new
m
2016-09-21 10:25:39 +02:00
(sName)s(oTestContainer)ATestContainer;
2016-09-20 23:49:28 +02:00
'Initializes the TestCase. Used in lieu of a constructor.
Run
m
(oTestResult)TestResult;[(ShowDebug)b]
CountTestCases
m
i
#TestSuite
_ITest
2016-09-20 23:49:28 +02:00
C
'The TestSuite class represents a suite of different tests to be run. The TestSuite contains
'a part-whole hierarchy of objects that implement the ITest interface --
'including TestCase objects and other TestSuite objects. Executing the Run method for the
'TestSuite will execute all test cases that it contains. The TestSuite class also provides
'methods for add all test cases contained in a test container object into the suite.
_new
m
Run
m
(oTestResult)TestResult;[(ShowDebug)b]
'Runs all tests contained within the collection and collects the result in the TestResult parameter.
CountTestCases
m
i
'Number of test cases contained in the suite
AddTest
m
(oTest)_ITest;
2016-09-20 23:49:28 +02:00
'Add a object implementing ITest (either a TestCase or TestSuite) to the suite.
AddTestCase
m
(oTestCase)_ITestCase;
2016-09-20 23:49:28 +02:00
'Add a TestCase to the suite.
AddNewTestCase
m
2016-09-21 10:25:39 +02:00
(sName)s(oTestContainer)ATestContainer;
2016-09-20 23:49:28 +02:00
'Create a new test case and add it to the suite.
AddAllTestCases
m
2016-09-21 10:25:39 +02:00
(oTestContainer)ATestContainer;
2016-09-20 23:49:28 +02:00
'Create all test cases that are contained in the specified TestContainer and add them to the suite.
2016-09-21 02:05:34 +02:00
#_GuTestErrorsAndFailures
2016-09-21 10:25:39 +02:00
ATestContainer
2016-09-21 02:05:34 +02:00
C
TestStringFailure
m
2016-09-21 10:25:39 +02:00
TestLongFailure
m
TestAddError
m
TestAddTrace
m
2016-09-21 02:05:34 +02:00
#_GuTestExample1
2016-09-21 10:25:39 +02:00
ATestContainer
2016-09-21 02:05:34 +02:00
C
SetupEach
m
TeardownEach
m
TestStringNull
m
TestStringOk
m
#_GuTestExample2
2016-09-21 10:25:39 +02:00
ATestContainer
2016-09-21 02:05:34 +02:00
C
SetupContainer
m
TeardownContainer
m
SetupEach
m
TeardownEach
m
TestFirstTest
m
TestThirdTest
m
TestSecondTest
m
#_GuTestIntentionalError
2016-09-21 10:25:39 +02:00
ATestContainer
2016-09-21 02:05:34 +02:00
C
TestError
m
#_ITest
C
Run
m
(Result)TestResult;[(ShowDebug)b]
CountTestCases
m
i
#_ITestCase
_ITest
C
Name
r
s
Container
r
ATestContainer