I am working on a UI to to display a test to the user. I would like to display where it is defined. For example:
/path/to/file:line_number
Given <this condition>
When <I do this>
Then <I should see this>
What is the most user-friendly way to do this? Is there any sort of standard? I often see /path/to/file:line_number
, but is there a better way to do it? Maybe something line /path/to/file, line <line_number>
? Or /path/to/file @ <line_number>
? Or something else?
Also, is it clear enough that the file and line number is where the test is defined, or should I have something more obvious, like "Defined at /path/to/file, line ???"?