HTML column sorting is inconsistent across index pages · Issue #1766 · nedbat/coveragepy (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
Describe the bug
- Visit the sample HTML report: https://nedbatchelder.com/files/sample_coverage_html/index.html
- Click the "coverage" column to sort by total coverage percentage
- Click the "Functions" tab at the top to switch to the by-function index page.
- 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.