Skip to content

Inconsistent test subject URLs in JSON report #463

Description

@jenstroeger

Hi,

The files in an EPUB are (truncated):

mimetype
META-INF/container.xml
OPS/nav.xhtml
OPS/package.opf
OPS/xhtml/Sources.html
...

Those same files, with this or that failing issue, are reported as follows (truncated):

  "assertions": [
    {
      "@type": "earl:assertion",
      ...
      "earl:testSubject": {
        "url": "/OPS/nav.xhtml"
      }
    },
    {
      "@type": "earl:assertion",
      ...
      "earl:testSubject": {
        "url": "OPS/package.opf",
      }
    },
    {
      "@type": "earl:assertion",
      ...
      "earl:testSubject": {
        "url": "xhtml/Sources.html",
      }
    },
    {
      "@type": "earl:assertion",
      ...
      "earl:testSubject": {
        "url": "nav.xhtml",
      }
    },
    ...
]

Note how the "url" path sometimes does, sometimes does not contain the OPS/ root folder. This makes tooling and automation a bit difficult, and should be fixed.

Cheers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions