Contents

saveJSON(to:includeReportMetadata:)

Saves evaluation results to a single JSON file.

Declaration

@discardableResult func saveJSON(to directory: URL, includeReportMetadata: Bool = false) throws -> URL

Parameters

  • directory:

    The directory to save the file in.

  • includeReportMetadata:

    Whether to include report metadata. Defaults to false.

Return Value

The URL of the saved file

Discussion

The file contains sections for summary, results, metadata, and optionally report metadata.

See Also

Saving and loading results