How to color unit tests with lib minitest or Test:Unit?

前端 未结 7 1393
执念已碎
执念已碎 2021-02-04 06:42

I would like to have unit tests output color in my dev environment. However, I can\'t make it work on Linux (Debian and Ubuntu). When I include the following libs:



        
7条回答
  •  半阙折子戏
    2021-02-04 07:15

    $ gem install mynyml-redgreen --source http://gemcutter.org
    
    # in your test file
    require 'redgreen'
    

    redgreen and turn work nicely in conjunction with each other, by the way

提交回复
热议问题