Skip to content

Links to Lines with Unittesting #17001

@brettcannon

Description

@brettcannon

Discussed in #16863

Originally posted by Password-Classified August 4, 2021
With unittests, I think that it would be a nice idea to include links to line numbers to improve productivity. By this I mean that when an error comes up, with an error message, it should link to the line number where it says "line ...". If this is not clear, see below:

Traceback (most recent call last):
    <filename here> line 123 in function:
          raise Exception('This is where the error would occur')
    Exception: This is where the error would occur

Where it says "line 123", there could be a link to the line in the file, so that it opens the file at that line in the editor. I thought of this because there is a link to the file (which opens in the editor), but there is not a link to that line in the file.

Thank you for your time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions