Class: matlab.unittest.plugins.Parallelizable
Package: matlab.unittest.plugins
Store data collected for group of tests
storeIn(
stores the plugin
,communicationBuffer
,data
)data
collected by plugin
in the buffer
communicationBuffer
. The data is collected by a MATLAB® worker while running a group of tests.
To run tests in parallel, the testing framework divides the original
TestSuite
array into separate groups and assigns them to workers on the
current parallel pool (requires Parallel Computing Toolbox™). To enable workers to store
their data, invoke storeIn
within the scope of the runTestSuite
method of TestRunnerPlugin
. The MATLAB client can retrieve the stored data by invoking the retrieveFrom
method within the scope of reportFinalizedSuite
.
Note
Each new call to storeIn
overwrites the previously stored data.
Therefore, write to the buffer only one time within the scope of the
runTestSuite
method. If you need to store several data items,
include them all in data
using an appropriate data type.
matlab.unittest.plugins.plugindata.CommunicationBuffer
| matlab.unittest.plugins.plugindata.TestSuiteRunPluginData
| matlab.unittest.plugins.TestRunnerPlugin
| reportFinalizedSuite
| retrieveFrom
| runInParallel
| runTestSuite