zqr9gq
Last Updated: February 25, 2016
·
495
· mrantix

Clickable Links In Test Output

Testing output can contain clickable links simply by making it into a Uri string before writing to output

var uriPath = new Uri(path).AbsoluteUri;

eg

"c:\temp\myImage.png" 

becomes this, which can be clicked

"file:///c:/temp/myImage.png"

This works with resharper test runner and vs2012 output window.
The vs2012 test explorer - doesn't work, but no suprise there :)