code-organization

Unit-testing with dependencies between tests

Unit-testing with dependencies between tests Question: How do you do unit testing when you have some general unit tests more sophisticated tests checking edge cases, depending on the general ones To give an example, imagine testing a CSV-reader (I just made up a notation for demonstration), def test_readCsv(): … @dependsOn(test_readCsv) def test_readCsv_duplicateColumnName(): … @dependsOn(test_readCsv) def …

Total answers: 6