retrieveFrom
Class: matlab.unittest.plugins.Parallelizable
Namespace: matlab.unittest.plugins
Retrieve data stored for group of tests
Description
data = retrieveFrom(
retrieves the data collected using the plugin from the specified communication buffer. The
data must be stored in plugin
,buffer
)buffer
by a MATLAB® worker while running a group of tests.
To run tests in parallel, the testing framework divides the original test suite into
groups and assigns them to workers on the current parallel pool (requires Parallel Computing Toolbox™). To enable the MATLAB client to retrieve data from the workers, invoke retrieveFrom
within the scope of the reportFinalizedSuite
method. The workers must store their data by invoking the
storeIn
method
within the scope of runTestSuite
.
data = retrieveFrom(
returns the specified default data if plugin
,buffer
,DefaultData=defaultData
)buffer
is empty in unexpected
circumstances, such as when a fatal assertion failure prevents all workers from storing
data. If buffer
contains data, the method retrieves the stored data as
expected. (since R2024a)