Top Description Methods
org.junit.platform.engine

public Interface OutputDirectoryCreator

Known Direct Subinterfaces
org.junit.platform.engine.reporting.OutputDirectoryProvider
Annotations
@API
status:MAINTAINED
since:1.14
Static Imports
org.apiguardian.api.API.Status.MAINTAINED

Provider of output directories for test engines to write reports and other output files to.
Since
1.14
See Also
EngineDiscoveryRequest#getOutputDirectoryCreator()

Method Summary

Modifier and TypeMethod and Description
public Path

Returns:

the output directory
createOutputDirectory
(TestDescriptor
the test descriptor for which to create an output directory; never null
testDescriptor
)

Create an output directory for the supplied test descriptor.

public Path

Returns:

the root directory for all output files; never null
getRootDirectory
()

Returns the root directory for all output files; never null.

Method Detail

createOutputDirectoryback to summary
public Path createOutputDirectory(TestDescriptor testDescriptor) throws IOException

Create an output directory for the supplied test descriptor.

Parameters
testDescriptor:TestDescriptor

the test descriptor for which to create an output directory; never null

Returns:Path

the output directory

Exceptions
IOException:
if the output directory could not be created
getRootDirectoryback to summary
public Path getRootDirectory()

Returns the root directory for all output files; never null.

Returns:Path

the root directory for all output files; never null