class Microtest::Test
- Microtest::Test
- Reference
- Object
Included Modules
Defined in:
microtest/test.crConstant Summary
-
FOCUSED_TESTNAME_PREFIX =
"__testf"
-
GENERAL_TESTNAME_PREFIX =
"__test"
-
GENERAL_TESTNAME_REGEX =
/__test(f)?__/
Constructors
Class Method Summary
-
.run_tests(context) : Nil
NOTE These macro methods are ugly.
- .test_classes : Array(Test.class)
- .test_methods : Array(String)
- .using_focus? : Bool
Instance Method Summary
- #after_hooks
- #around_hooks(&block)
- #before_hooks
- #call(name, &block)
- #capture_exception(name, &block)
- #context : ExecutionContext
- #execute_test(name, &block)
- #pass
- #report_test_result(name, duration, e)
Macro Summary
Instance methods inherited from module Microtest::PowerAssert
assert_raises(exception_type : Exception.class, file : String = __FILE__, line : String = __LINE__, &)
assert_raises
Constructor Detail
Class Method Detail
def self.run_tests(context) : Nil
#
NOTE These macro methods are ugly. They contain a lot of duplication, but i don't know how to get rid of it. The duplication seems necessary, since a macro def cannot invoke another macro def. And a macro-level array of method names is required in order to be able to iterate over test method names to generate the "send(...)" like code.