atom-ruby-test icon indicating copy to clipboard operation
atom-ruby-test copied to clipboard

Linked file paths

Open moxley opened this issue 11 years ago • 2 comments

Ability to click on a file path in the output and have it open in the editor.

moxley avatar May 14 '14 23:05 moxley

I started looking into this one, which took me to ansi_to_html, which then made me wonder about the RSpec HTML formatter, which would be a great fit. Cucumber's HTML formatter is even better. Unfortunately, I can't see one for Ruby Test.

yozlet avatar Jul 02 '14 08:07 yozlet

Here's how I imagine it working:

  1. Process the output by splitting it into parts that are file paths, and parts that are everything else.
  2. For the everything-else parts, just pass them to ansi_to_html, with the escape-html option, then pass the result through.
  3. For the file paths, html-escape the file path, wrap it in a tag, and pass it through.

moxley avatar Jul 02 '14 16:07 moxley