ReportGenerator Class

Namespace: Decnet.PatchProof.Core.Reporting
Assembly: Decnet.PatchProof.Core.dll

The ReportGenerator class compiles completed CoverageMatrix data into standalone HTML release reports and structured JSON files.


Static Methods

GenerateHtmlReport

Generates a complete, self-contained HTML release dossier.

public static string GenerateHtmlReport(
    CoverageMatrix matrix,
    ReleaseManifest baseline,
    ReleaseManifest candidate,
    ContentContract contract
);

Returns

  • string: Raw HTML string ready to be written to disk.

GenerateJsonReport

Generates a machine-readable JSON summary for CI integration.

public static string GenerateJsonReport(
    CoverageMatrix matrix,
    ReleaseManifest baseline,
    ReleaseManifest candidate,
    ContentContract contract
);

Returns

  • string: Serialized JSON string conforming to the PatchProof CI schema.

Example: Exporting Reports from Code

using Decnet.PatchProof.Core.Reporting;

// Generate reports after matrix execution
string html = ReportGenerator.GenerateHtmlReport(matrix, baseline, candidate, contract);
string json = ReportGenerator.GenerateJsonReport(matrix, baseline, candidate, contract);

File.WriteAllText("Reports/Release_v2.0.0.html", html);
File.WriteAllText("Reports/Release_v2.0.0.json", json);

Back to top

Copyright © 2026 Decnet Games. PatchProof — Addressables Release Rehearsal Lab. Available on the Unity Asset Store (Short link: u3d.as/4g0P). Tested on Unity 6000.5.4f1 LTS with Addressables 2.9.1. All rights reserved.

This site uses Just the Docs, a documentation theme for Jekyll.