Skip to content

test.suite

Palamecia edited this page Dec 4, 2022 · 6 revisions

Module

load test.suite

This module provides the Test.Suite class which schedule tests.

Packages

Classes

Test.Suite

This singleton schedule tests implemented in classes derived from Test.Case.

Members

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.

Descriptions

Test.Suite.filter

/.*/

Internal test class filter.

Test.Suite.g_instance

none

Global instance.

Test.Suite.instance

def ()

Return the global Test.Suite instance.

Test.Suite.list

def (self)

List attached tests on the standard output.

Test.Suite.new

none

Internal constructor.

Test.Suite.run

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.
Clone this wiki locally