How to run all tests with minitest?

后端 未结 9 2237
-上瘾入骨i
-上瘾入骨i 2020-12-02 21:47

I downloaded source code for a project, found a bug, and fixed it.

Now I want to run tests to find out if I have broken anything.

The Tests are in minitest D

9条回答
  •  一个人的身影
    2020-12-02 22:43

    This can also be done via a Makefile.

    default:
      echo "Dir.glob('./test/*_test.rb').each { |file| require file}" | ruby
    

    running make will run all your tests.

提交回复
热议问题