test.suite - Palamecia/mint GitHub Wiki
load test.suite
This module provides the Test.Suite class which schedule tests.
This singleton schedule tests implemented in classes derived from Test.Case.
Modifiers | Member | Description |
---|---|---|
- final
|
filter | Internal test class filter. |
- @
|
g_instance | Global instance. |
+ @ const
|
instance | Return the global Test.Suite instance. |
+ const
|
list | List attached tests on the standard output. |
~ const
|
new | Internal constructor. |
+ const
|
run | Run attached Test.Cases. |
/.*/
Internal test class filter.
none
Global instance.
def ()
Return the global Test.Suite instance.
def (self)
List attached tests on the standard output.
none
Internal constructor.
def (self)
Run attached Test.Cases.
def (self, args)
Loads each modules with a name that match /test-.*\.mn/
in the
module's directory and run attached Test.Cases.
The args
must be an iterator with the same format than the va_args
variable from the main module. Extra options can be passed through
this variable.
Options:
--filter <pattern> Apply a filter on the test names. The tests with a name that does not match
the pattern are not executed.
--list List the names of all tests instead of running them.
-h, --help Print this message and exit.