In rails is it possible to get colour highlighting for the rake test command?

前端 未结 3 1613
梦如初夏
梦如初夏 2021-02-08 23:05

When running the rake test command from the terminal within a rails 3 project directory, the test result output is not coloured. Hence it cannot be interpreted at a gla

3条回答
  •  离开以前
    2021-02-08 23:37

    I am working on Rails 5.1.6 and I was also searching for a solution to make the reporting color. None of these solutions are working so I googled and saw this solution. Just add the following in test/test_helper.rb file:

    require "minitest/reporters"
    Minitest::Reporters.use!
    

    By posting this, maybe it will help someone.

提交回复
热议问题