当指定的测试没有通过时,是否可以跳过python单元测试

时间:2016-02-02 06:34:27

标签: python unit-testing python-unittest

我想知道如何实施check_step01功能。

class MyCase(unittest.TestCase):

  def test_step01(self):
    //do testing

  @unittest.skipIf(check_step01, "step01 not pass")
  def test_step02(self):
    //do testing

0 个答案:

没有答案
相关问题