self-contained html5? report

Issue #106 wontfix
anatoly techtonik created an issue

It will be nice to get an option for generating report in self-contained html file.

Comments (7)

  1. Ned Batchelder repo owner

    Anatoly, this sounds intriguing, but I don't know what you mean. Can you provide more details of what you are looking for?

  2. anatoly techtonik reporter

    I'm looking for report that is contained in one file with all necessary JavaScript, CSS and data. Maybe self-sufficient is a better word.

  3. Ned Batchelder repo owner

    If you mean that it would contain details of all the source files, then that could be a huge file!

  4. anatoly techtonik reporter

    That's why it's good to see this as an option. For small modules under 100kB the size of reports hardly exceeds 1Mb. I think it's acceptable.

  5. anatoly techtonik reporter

    The value behind this was to track coverage in version control system, so that you can checkout the data together with source (useful for web sites). An alternative is to dump data into JSON or something.

  6. Ned Batchelder repo owner

    Thanks for the detail. In that case, I would recommend storing the data, not the rendering, as you suggest, in json or something. I'm planning to revamp the .coverage data file to be json rather than pickle anyway.

  7. Log in to comment