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

前端 未结 7 1287
执念已碎
执念已碎 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:28

    See https://github.com/tenderlove/purdytest/issues/1. It seems to be a known bug with the minitest version shipped with 1.9.2. For the others, adding

    gem "minitest"
    

    at the very top of your file did the trick.

提交回复
热议问题