开发者

Rspec and Infinity Test in color

I am using infinity_test gem with rspec in a rails project. How can I get the out开发者_Go百科put in color? I tried setting in terminal

rspec --color

I then ran "rspec spec/" to make sure color output was working. Then I run

infinity_test

and the test output is no longer in color. How can I get it to output in color?


This a bug in the InfinityTest.

There is a issue in Github.

It's a very strange bug, and don't find where the problem occurs. I think in the lib/infinity_test/command.rb#line 21 is the problem.

I'll try to solve the problem, but patches are welcome!

Sorry for that, but thanks for the info. =]


Just create a spec/.spec file in your spec directory. The file should look like this:

--color [+Other options you want to pass to rspec]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜