climate-resource / input4mips_validation

Validation of input4MIPs data
https://input4mips-validation.readthedocs.io/en/latest/
Other
0 stars 1 forks source link

Dump caught errors out as html #42

Closed znichollscr closed 1 week ago

znichollscr commented 1 month ago

The motivation

As a user, it's hard to interrogate errors from validate-tree from the command-line output alone.

The proposed solution

Add the ability to dump the errors as a basic HTML page with expanding sections, something like the below

Failures:
<ol>
    <li>
        <details>
          <summary>filename</summary>
          <ol>
              <li>
                  <details>
                      <summary>error headline</summary>
                      Error full info
                  </details>
              </li>
          </ol>
        </details>
    </li>
</ol>
Passed:
<ol>
    <li>filename</li>
</ol>

Alternatives

Additional context