How do I effectively force Minitest to run my tests in order?

前端 未结 5 1378
走了就别回头了
走了就别回头了 2021-01-18 04:34

I know. This is discouraged. For reasons I won\'t get into, I need to run my tests in the order they are written. According to the documentation, if my test class (we\'ll c

5条回答
  •  情书的邮戳
    2021-01-18 05:11

    i_suck_and_my_tests_are_order_dependent! may be a later addition to minitest & not available as a Ruby core method. In that case, you'd want to force use of your gem version:

    require 'rubygems'
    gem 'minitest'
    

提交回复
热议问题