Console Report: on fail test print path-line to work with ide hyperlink #75
Labels
documentation
Improvements or additions to documentation
improvement
Improve an already implemented feature
Milestone
Feature that could be helpful for the one running clove-unit tests from a Terminal within an ide (e.g. vscode).
Basically the idea is to produce a path-line format so that the ide succeed to create an hyperlink, making the failining testcase easyly reachable with a click (or CTRL+click depending on ide).
Currently in pretty print report, on test with failure the path line are printed like this:
<AbsolutePathToTestFile>@<LineNumber>
Convert this format as c/cpp compilers do, so that will allow an ide with terminal hyperlink feature to create the link with the real file. Possible choises:
<AbsolutePathToTestFile>(<LineNumber>)
<AbsolutePathToTestFile>:<LineNumber>
NOTE: Compilers format is (<LineNumber>,<ColumnNumber>) or <LineNumber>:<ColumnNumber>, but for this usecase, ColumnNumber could be omitted and hyperlink would be created anyway
This an example of the hyperlink created by vscode from its terminal:
The text was updated successfully, but these errors were encountered: