Interface SnapshotDsl.ChooseDirectory

    • Method Detail

      • in

        @API(status=EXPERIMENTAL,
             since="1.2.0")
        SnapshotDsl.ChooseName in​(java.nio.file.Path directory)
        Allows to choose the directory into which the snapshot will be persisted. The path configured here takes precedence over what is configured via SnapshotDirectory.

        The path configured here will not be resolved against the src/test/resources directory. If you provide a relative path, it will be considered to be relative to the project's root directory.

        Warning: Changing the directory has severe impact on orphan detection and might lead to false positives. Use with caution as long as this API is marked 'EXPERIMENTAL'.

        Parameters:
        directory - The directory into which to write the snapshot.
        Returns:
        Fluent API object for choosing the snapshot format. Do NOT assume it is the same object as 'this'!
        Since:
        1.2.0