Unit-testing with dependencies between tests

前端 未结 6 2063
日久生厌
日久生厌 2020-12-14 16:49

How do you do unit testing when you have

  • some general unit tests
  • more sophisticated tests checking edge cases, depending on the general ones
6条回答
  •  感动是毒
    2020-12-14 16:57

    Proboscis is a python version of TestNG (which is a Java library).

    See packages.python.org/proboscis/

    It supports dependencies, e.g.

    @test(depends_on=[test_readCsv])
    public void test_readCsv_duplicateColumnName() {
       ...
    }
    

提交回复
热议问题