Print file path report as link file#5921
Conversation
Codecov Report
@@ Coverage Diff @@
## main #5921 +/- ##
=========================================
Coverage 84.46% 84.46%
Complexity 3784 3784
=========================================
Files 546 546
Lines 12923 12923
Branches 2268 2268
=========================================
Hits 10915 10915
Misses 877 877
Partials 1131 1131
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
| if (filePath != null) { | ||
| report.write(filePath, result) | ||
| result.add(SimpleNotification("Successfully generated ${report.name} at $filePath")) | ||
| result.add(SimpleNotification("Successfully generated ${report.name} at file://$filePath")) |
There was a problem hiding this comment.
Can you instead call .toURI here?
https://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html#toUri()
There was a problem hiding this comment.
okay, will handle it..
cortinico
left a comment
There was a problem hiding this comment.
LGTM 👍 Can you confirm that .toUri contains the file:// schema? (like can you post a screenshot of the output)

Base on this discussion. This commit will print report path as a link file. So we can click on the report path on our terminal, and will open directly browser / text editor / etc.
Before:

After
