Foundry.TestManager¶
- Subclasses:
None
Methods¶
- Inherited:
Foundry.Service (8), Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8), Gio.ListModel (4)
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
GObject.Object (7), Json.Serializable (5), Gio.ListModel (3)
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Foundry.TestManager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Manages plugins providing test providers and their tests.
- find_test(test_id)¶
- Parameters:
test_id (
str) – the identifier of the test- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.Test] or rejects with error.
- Return type:
- list_suites()¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.TestSuite].
- Return type:
Loads available tests and groups them within a [class`Foundry`.TestSuite].
New in version 1.1.
- list_tests()¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.Test]
- Return type:
Queries all [class`Foundry`.TestProvider] for available unit tests.
The resulting module may not be fully populated by all providers by time it resolves. You may await the completion of all providers by awaiting [func`Foundry`.list_model_await] for the completion of all providers.
This allows the consumer to get a dynamically populating list model for user interfaces without delay.