Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature proposal: line number anchors #49

Closed
jantman opened this issue Nov 17, 2016 · 1 comment · Fixed by #106
Closed

Feature proposal: line number anchors #49

jantman opened this issue Nov 17, 2016 · 1 comment · Fixed by #106

Comments

@jantman
Copy link

jantman commented Nov 17, 2016

Using simplecov-html reports while doing active development is a bit painful right now:

  1. I'm looking at the coverage report for a file, and find some missing lines. Let's say, hypothetically, they're lines 503-505.
  2. Add tests that I think cover those lines and re-run my rspec rake task.
  3. Refresh the coverage report in my browser and... I'm back at the top of the page and need to scroll to line 503 again.

My suggestion is to implement what some other HTML coverage generators do (i.e. Python's coverage package) - or, for that matter, GitHub when viewing source files or gists - and make each line number a named anchor and link to that anchor so that users can save their location in the file.

@nishidayuya
Copy link
Contributor

@jantman I implemented this issue in #106 ! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants