const classxfant::TestSuite
sys::Obj xfant::TestSuite : xfant::Xtest
Creates a group of test from a Test# subclass.
The type must be a Test# subclass.
- Cannot be abstract.
- Each method that starts with "test" that not is abstract is added to list variable
tests.
If the type has a facet @Ignore the test cases are not created and tests variable is an empty list.
See TestCase.
- classname
virtual override Str classname()Qualified classname to wich this tests belongs.
- findTestMethods
static Slot[] findTestMethods(Type type)Find all methods in a type that starts with
testand are non abstract- fromPod
static TestSuite[] fromPod(Pod pod)Creates a test for a pod. Take all classes in the pod that are subclasses of
Test#, non abstract and creates a testcase for each of them.- fromStr
static new fromStr(Str pattern, Bool checked := true)Match
patternwithpod::typeand returns aTestSuitewith all the test cases extracted from the type. ifpatterndoes not match and checked istruethrows anArgErrerror, else returns null.- isIgnored
Bool isIgnored()- make
new make(Type type)Constructor from
typeadding all the test methods. SeeTestCase- name
virtual override Str name()The name of this test is the type's classname.
- tests
const Xtest[] testsGroup of tests to execute.
- type
const Type typeType with the tests