SublimeText / RSpec

Sublime Text 2 / 3 plugin for RSpec BDD Framework
124 stars 57 forks source link

Syntax highlight build output #47

Closed princemaple closed 3 years ago

princemaple commented 9 years ago

Does anyone have experience about this?

atroche commented 9 years ago

Can you provide more information about what you want?

princemaple commented 9 years ago

As in highlighting the build output with color. Green dots and red "F"s, this kind of stuff. If you search RubyTest plugin, you will see.

maksimf commented 9 years ago

Why you decide to close this? I'm currently researching about this issue btw...

princemaple commented 9 years ago

@maksimf good to know. A while ago, I read about how to do this and tested some stuff around, ended up with little success. I saw a notification about this thread, but didn't see a new comment, which you probably deleted, thought it's weird :) lets reopen, and would be great if you can find out how to do it properly.

maksimf commented 9 years ago

@princemaple By now I found out that there is actually syntax option available for build system: here (at the bottom)

So I tried to use provided by RubyTest syntax file for RSpec output, but I'm currently stuck with practically colorizing output. I suppose we can somehow use RubyTest's RSpec output theme. But I don't now how for now, any ideas?

princemaple commented 9 years ago

You can probably add something like

<key>settings</key>
<dict>
  <key>foreground</key>
  <string>#00FF00</string>
</dict>

after every definition Not sure.. I suspect that the two fails serve different purposes. Worth trying anyway. I got about this far, too, when I tried. I stopped there because it was getting tedious.

maksimf commented 9 years ago

I looked through the above files and it looks like they define only Cucumber syntax, so I don't understand where exactly they define 'styles' for RSpec and Minitest. Do you know?

princemaple commented 9 years ago

I don't. I would think Cucumber covers the RSpec part?

maksimf commented 9 years ago

Maybe. I'll try to ask about this at superuser

princemaple commented 9 years ago

Thanks a lot for the effort!

On Sat, 4 Apr 2015 02:23 Maxim Filippov notifications@github.com wrote:

Maybe, I'll try to ask about this at superuser https://superuser.com/questions/897494/sublime-text-colorize-build-system-output

— Reply to this email directly or view it on GitHub https://github.com/SublimeText/RSpec/issues/47#issuecomment-89320464.

maksimf commented 9 years ago

I also opened topic at sublimetext forum, no answers yet, though.

princemaple commented 9 years ago

Thanks!

On Mon, 6 Apr 2015 20:10 Maxim Filippov notifications@github.com wrote:

I also opened http://www.sublimetext.com/forum/viewtopic.php?f=2&t=17918 topic at sublimetext forum, no answers yet, though.

— Reply to this email directly or view it on GitHub https://github.com/SublimeText/RSpec/issues/47#issuecomment-90001031.

maksimf commented 9 years ago

@princemaple hope something helps, rly want to get it done :)

princemaple commented 9 years ago

It will be a great improvement if it gets done.

On Mon, 6 Apr 2015 20:13 Maxim Filippov notifications@github.com wrote:

@princemaple https://github.com/princemaple hope something helps, rly want to get it done :)

— Reply to this email directly or view it on GitHub https://github.com/SublimeText/RSpec/issues/47#issuecomment-90001263.

brenoperucchi commented 8 years ago

The output color has already been implemented?

princemaple commented 8 years ago

@bperucchi nope :cry:

kmacdough commented 6 years ago

@princemaple Two things here. In terms of syntax highlighting, check out https://github.com/aziz/SublimeANSI. Doesn't highlight mid-build in my experience but works in the end. Also, in the mean time can we please get the --no-color option? Feels kinda silly to render ANSI colors codes while they aren't working.