Package org.junit.platform.engine
Interface OutputDirectoryCreator
-
- All Known Subinterfaces:
OutputDirectoryProvider
- All Known Implementing Classes:
EngineTestKit.Builder.DisabledOutputDirectoryCreator,HierarchicalOutputDirectoryCreator,OutputDirectoryProviderAdapter
@API(status=MAINTAINED, since="1.14") public interface OutputDirectoryCreatorProvider of output directories for test engines to write reports and other output files to.- Since:
- 1.14
- See Also:
EngineDiscoveryRequest.getOutputDirectoryCreator()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.nio.file.PathcreateOutputDirectory(TestDescriptor testDescriptor)Create an output directory for the supplied test descriptor.java.nio.file.PathgetRootDirectory(){@return the root directory for all output files; never {@code null}}
-
-
-
Method Detail
-
getRootDirectory
java.nio.file.Path getRootDirectory()
{@return the root directory for all output files; never {@code null}}
-
createOutputDirectory
java.nio.file.Path createOutputDirectory(TestDescriptor testDescriptor) throws java.io.IOException
Create an output directory for the supplied test descriptor.- Parameters:
testDescriptor- the test descriptor for which to create an output directory; nevernull- Returns:
- the output directory
- Throws:
java.io.IOException- if the output directory could not be created
-
-