HTML column sorting is inconsistent across index pages · Issue #1766 · nedbat/coveragepy (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@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.