Foundry.TestManager

g Foundry.Contextual Foundry.Contextual Foundry.Service Foundry.Service Foundry.Contextual->Foundry.Service Foundry.TestManager Foundry.TestManager Foundry.Service->Foundry.TestManager GObject.GInterface GObject.GInterface Gio.ListModel Gio.ListModel GObject.GInterface->Gio.ListModel Json.Serializable Json.Serializable GObject.GInterface->Json.Serializable GObject.Object GObject.Object GObject.Object->Foundry.Contextual Gio.ListModel->Foundry.TestManager Json.Serializable->Foundry.Contextual

Subclasses:

None

Methods

Inherited:

Foundry.Service (8), Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8), Gio.ListModel (4)

Structs:

Foundry.ServiceClass (3), GObject.ObjectClass (5)

find_test (test_id)

list_suites ()

list_tests ()

Virtual Methods

Inherited:

GObject.Object (7), Json.Serializable (5), Gio.ListModel (3)

Properties

Inherited:

Foundry.Contextual (1)

Signals

Inherited:

GObject.Object (1), Gio.ListModel (1)

Fields

Inherited:

GObject.Object (1), Gio.ListModel (1)

Class Details

class Foundry.TestManager(**kwargs)
Bases:

Foundry.Service, Gio.ListModel

Abstract:

No

Structure:

Foundry.TestManagerClass

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:

Dex.Future

list_suites()
Returns:

a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.TestSuite].

Return type:

Dex.Future

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:

Dex.Future

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.