Use double quotes in HTML output to accommodate limited third-party tools

Issue #361 resolved
Robin James Kerrison created an issue

The HTML output wraps the values of attributes in single quotes, thusly:

    <meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
    <title>Coverage report</title>
    <link rel='stylesheet' href='style.css' type='text/css'>

    <script type='text/javascript' src='jquery.min.js'></script>
    <script type='text/javascript' src='jquery.tablesorter.min.js'></script>
    <script type='text/javascript' src='jquery.hotkeys.js'></script>
    <script type='text/javascript' src='coverage_html.js'></script>
    <script type='text/javascript' charset='utf-8'>

It should be wrapping in double quotes, or at least there should be an easy way to configure using double quotes.

Current behaviour is an issue when trying to use alongside CCNet, since the former outputs single quotes and the latter only searches for double quotes when resolving sources and anchors using its RetrieveBuildFile handler.

Comments (10)

  1. Ned Batchelder repo owner

    I don't understand what CCNet is doing: why is it looking through the HTML report? And why doesn't it know that single quotes are valid HTML?

  2. Robin James Kerrison reporter

    I'm running

            <buildArgs>run "F:\MyPythonSolution\"</buildArgs>
            <buildArgs>html --omit=*/tests/*,*runtests*,*__init__* -d "$[$CCNetArtifactDirectory]\$[$CCNetLabel]\coveragereport"</buildArgs>

    which outputs the html coverage report into a folder which is later read by CCNet's htmlReportPlugin:

    <htmlReportPlugin description="Coverage Report" actionName="myPythonCoverageReport" htmlFileName="coveragereport\index.html">
            <projectName>MyPython Code Coverage</projectName>

    This question at StackOverflow describes the same CCNet issue.

  3. Ned Batchelder repo owner

    Have you reported this bug against CCNet? I looked, but could not find a bug tracker for them.

  4. Ned Batchelder repo owner

    Thanks for reporting the bug to them. There's no need for an option here, I can change them to double quotes. It just irks me to have to. :)

  5. Log in to comment