Top | ![]() |
![]() |
![]() |
![]() |
gboolean | ide_test_manager_get_loading () |
void | ide_test_manager_run_async () |
gboolean | ide_test_manager_run_finish () |
void | ide_test_manager_run_all_async () |
gboolean | ide_test_manager_run_all_finish () |
The IdeTestManager is responsible for loading unit test provider plugins (via the IdeTestProvider interface) and running those unit tests on behalf of the user.
You can access the test manager using ide_context_get_text_manager()
using the IdeContext for the loaded project.
void ide_test_manager_run_async (IdeTestManager *self
,IdeTest *test
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Executes a single unit test, asynchronously.
The caller can access the result of the operation from callback
by calling ide_test_manager_run_finish()
with the provided result.
self |
||
test |
An IdeTest |
|
cancellable |
a GCancellable, or |
[nullable] |
callback |
a callback to execute upon completion |
|
user_data |
user data for |
Since: 3.28
gboolean ide_test_manager_run_finish (IdeTestManager *self
,GAsyncResult *result
,GError **error
);
Completes a request to ide_test_manager_run_finish()
.
When this function returns TRUE
, it does not indicate that the test
succeeded; only that the test was executed. Thest IdeTest instance
itself will contain information about the success of the test.
Since: 3.28
void ide_test_manager_run_all_async (IdeTestManager *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Executes all tests in an undefined order.
Upon completion, callback
will be executed which must call
ide_test_manager_run_all_finish()
to get the result.
Note that the individual test result information will be attached to the specific IdeTest instances.
self |
||
cancellable |
a GCancellable or |
[nullable] |
callback |
a callback to execute upon completion |
|
user_data |
user data for |
Since: 3.28
gboolean ide_test_manager_run_all_finish (IdeTestManager *self
,GAsyncResult *result
,GError **error
);
Completes an asynchronous request to execute all unit tests.
A return value of TRUE
does not indicate that all tests succeeded,
only that all tests were executed. Individual test failures will be
attached to the IdeTest instances.
Since: 3.28