matlab.unittest.plugins.ToUniqueFile class
Package: matlab.unittest.plugins
Superclasses: matlab.unittest.plugins.OutputStream
Output stream to write text to unique file
Description
The ToUniqueFile
creates an output stream to write text to a unique,
UTF-8 encoded file. Whenever text prints to this stream, the output stream opens the
file, appends the text, and closes the file. Each instance of
ToUniqueFile
creates a file with a unique file name. This output
stream is useful for running tests in parallel while redirecting output to a
file.
MATLAB® creates the unique file name for the output stream, but you can specify a file prefix and extension.
Construction
matlab.unittest.plugins.ToUniqueFile(
creates an output stream to write text to a unique file in the specified folder.folder
)
matlab.unittest.plugins.ToUniqueFile(
creates a unique file with additional options specified by one or more name-value
arguments. You can specify several name-value arguments in any order as
folder
,Name,Value
)Name1,Value1,...,NameN,ValueN
.
Input Arguments
Properties
Copy Semantics
Handle. To learn how handle classes affect copy operations, see Copying Objects.
Examples
Version History
Introduced in R2018a