For each test class, methods can be executed before and after all cases.
nitc :: TestClass :: _after_all
Tests to be executed after the whole test suite.nitc :: TestClass :: _before_all
Tests to be executed before the whole test suite.nitc :: TestClass :: _test_cases
List ofTestCase
to be executed in this suite.
nitc :: TestClass :: after_all=
Tests to be executed after the whole test suite.nitc :: TestClass :: before_all
Tests to be executed before the whole test suite.nitc :: TestClass :: before_all=
Tests to be executed before the whole test suite.nitc :: TestClass :: defaultinit
nitc :: TestClass :: test_cases
List ofTestCase
to be executed in this suite.
nitc :: TestClass :: test_cases=
List ofTestCase
to be executed in this suite.
nitc :: TestClass :: _after_all
Tests to be executed after the whole test suite.nitc :: TestClass :: _before_all
Tests to be executed before the whole test suite.nitc :: TestClass :: _test_cases
List ofTestCase
to be executed in this suite.
nitc :: TestClass :: after_all=
Tests to be executed after the whole test suite.nitc :: TestClass :: before_all
Tests to be executed before the whole test suite.nitc :: TestClass :: before_all=
Tests to be executed before the whole test suite.core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: TestClass :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).nitc :: TestClass :: test_cases
List ofTestCase
to be executed in this suite.
nitc :: TestClass :: test_cases=
List ofTestCase
to be executed in this suite.
# A test class contains multiple test cases
#
# For each test class, methods can be executed before and after all cases.
class TestClass
# List of `TestCase` to be executed in this suite.
var test_cases = new Array[TestCase]
# Tests to be executed before the whole test suite.
var before_all = new Array[TestCase]
# Tests to be executed after the whole test suite.
var after_all = new Array[TestCase]
end
src/testing/testing_suite.nit:334,1--346,3