Here's the thing:
I run a bunch of Cucumber tests from a ruby file by calling the command like this:
result = `bundle exec cucumber tests/specs/features`
[...] # do stuff with it
puts result
Now the result of the command has these nice c开发者_开发百科olors telling me a lot about passing and failing tests by just looking at it without reading. But: when I put the result like this, the coloring is gone!
Is there any way of doing this without losing the coloring?
Take a look at this and this questions, they are about just the same thing but with rspec
instead of cucumber
.
精彩评论