A TestSuite is a Composite of Tests. It runs a collection of test cases.
An example using the dynamic test definition.
$suite typeof TestSuite()
$mathTest typeof MathTest
$suite.addTest( $mathTest )
Alternatively, a TestSuite can extract the tests to be run automatically.
To do so you pass the concept of your TestCase concept to the
TestSuite constructor.
$mathTest typeof MathTest
$suite typeof TestSuite( $mathTest )
This constructor creates a suite with all the methods
starting with "test" and return String that take no arguments.
Methods inherited from: Concept
cloneConcept, extendsConcept, fromXML, getAllInheritedConcepts, getConceptAttribute, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElementField, getConceptElementFields, getConceptElements, getConceptLabel, getConceptMethod, getConceptMethods, getConceptOperators, getConceptType, getErrorHandler, getInheritedConcepts, getResourceURI, hasConceptAttribute, hasConceptElement, hasConceptMethod, hasPath, isHidden, loadContent, setConceptLabel, setErrorHandler, setHidden, setShowEmpty, showEmpty, toTXT, toXML, setResourceURI |
|
Methods inherited from: Test
|
Label: | fTests |
Type: | Series |
Is Static: | false |
Is Hidden: | false |
Is Multi: | false |
Show Empty: | true |
This series element will hold the Tests
Label: | fName |
Type: | String |
Is Static: | false |
Is Hidden: | false |
Is Multi: | false |
Show Empty: | true |
The name of the test suite
Constructs an empty TestSuite the with name.
Cnstructs a TestSuite from the given concept. Adds all the methods
starting with "test" and returns String as test cases to the suite.
Adds a test to the suite.
Parameters: |
$m : | |
$names : | |
$constructor : | |
|
Adds a test method
Adds the tests from the given concept to the suite
Counts the number of test cases that will be run by this test.
Verify if the passed method is test method. The method name must start
with "test" andt must return a String.
Runs the tests and collects their result in a TestResult.
Specified by: run in interface Test
Runs the tests and collects their result in a TestResult.
Sets the name of the suite.
Returns the test at the given index
Returns the number of tests in this suite
Returns the tests as a Series
Returns the name of the suite. Not all test suites have a name.
Shows a warning message. Use the TestCase warning Adapter.