Functions

The following functions are available globally.

  • The URL of the directory where the graphics test artifacts for the given testName will be generated.

    Declaration

    Swift

    public func testCaseDirectory(for testCaseName: String) -> URL
  • Declaration

    Swift

    public func location(forFile fileName: String, in testCaseName: String) -> URL

    Return Value

    The URL for the given fileName in the directory for the given testCaseName.

  • Creates the directory where the graphics test artifacts for the given testName will be generated.

    Declaration

    Swift

    public func createArtifactsDirectory(for testName: String)
  • Opens the artifacts directory in the finder for easy visual perusing.

    Declaration

    Swift

    public func openArtifactsDirectory()
  • Render the given StyledPath.Composite to PDF in the direction for the test case with the given testCaseName, with the given fileName.

    Declaration

    Swift

    public func render(
        _ composite: StyledPath.Composite,
        fileName: String,
        testCaseName: String
    )