Skip to content

HTML column sorting is inconsistent across index pages #1766

Closed
@nedbat

Description

@nedbat

Describe the bug

  1. Visit the sample HTML report: https://nedbatchelder.com/files/sample_coverage_html/index.html
  2. Click the "coverage" column to sort by total coverage percentage
  3. Click the "Functions" tab at the top to switch to the by-function index page.
  4. Now the "partial" column is sorted.

This is because the number of the column is stored, but the function and class index pages have one more column, so the numbering is off.

This is with coverage.py 7.5.0.

Expected behavior
If you've sorted by a column, the same-named column should be sorted when switching to another page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghtml

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions