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

前端 未结 5 1256
走了就别回头了
走了就别回头了 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:25

    I think that the method *test_order* should be a class method and not a instance method like so:

    # tests are order dependent
    def self.test_order
      :alpha
    end
    

提交回复
热议问题