Comments (4)
Seems like the simple way to do it would be adding id
s the the headers, getting the th
from (and storing) it in sortColumn
and loading it in coverage.wire_up_sorting
(which would also pass the id
from the click event).
I can work on a PR tonight if it's still open.
from coveragepy.
Thanks! Extra-credit homework: if you sort the function page by function name, the file index page doesn't have that column, so what should the sort order be?
from coveragepy.
We could store the last column the index page was sorted by and sort on it again. But then we'd have one more question when the user goes back to the function page. We have two scenarios:
- The user didn't re-sort by another column: should the function page now be sorted by function (as it was last time the user was there) or by whatever was the last sort column on the index page?
- The user sorted by some other column: then we can sort the function/class page by that new column.
I think it would be easier to keep storing the last column to sort with, while adding a flag that means "sort the function or class pages by function/class" when set. Let me give it a try.
from coveragepy.
This is now released as part of coverage 7.5.1.
from coveragepy.
Related Issues (20)
- oss-fuzz 69058: TokenError HOT 4
- Support coverage plugins with sys.monitoring
- Memory leak when generating reports HOT 18
- Line incorrectly reported as uncovered in python 3.11 involving `asyncio.to_thread` and a conditional
- A way to get report data in detail HOT 15
- `continue` incorrectly marked as uncovered on python 3.9 HOT 2
- pragma: no cover ignored and coverage wrongly calculated HOT 5
- How to exclude a line without the block it introduces? HOT 1
- coverage.tracer thread-safety warning with Python 3.13 free-threaded HOT 3
- Provide the ability to exclude a code block from coverage HOT 5
- PermissionError: [Errno 13] Permission denied: '/dev/stdout' HOT 2
- how to write a parser for raw coverage file (.coverage) and a json reporter in golang ? HOT 2
- COVERAGE_CORE=sysmon with branch coverage can be 2x slower than default in some cases HOT 5
- Overall Branch and Function coverage percentage in json report HOT 7
- Setup.py attempts to import obsolete 'distutils' HOT 1
- Functions executed via multiprocessing aren't reliably being covered by coverage.py HOT 1
- Unable to get .coverage file in local system when using docker compose up
- Should the C extension set Py_mod_gil? HOT 2
- `coverage html` creates HTML files that contain duplicate `id` attributes. HOT 2
- I am writing unit test cases for python file using pytest framework HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coveragepy.