Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linked file paths #7

Open
moxley opened this issue May 14, 2014 · 2 comments
Open

Linked file paths #7

moxley opened this issue May 14, 2014 · 2 comments

Comments

@moxley
Copy link
Owner

moxley commented May 14, 2014

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

@yozlet
Copy link

yozlet commented Jul 2, 2014

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.

@moxley
Copy link
Owner Author

moxley commented Jul 2, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants