开发者

Data Drive Unit Test - Programmatically Skipping Rows

开发者 https://www.devze.com 2023-04-04 20:09 出处:网络
Is there a way to programmatically skip rows in a data drive unit test?I want to开发者_运维问答 run all rows on our build server, but only one row when debugging.What you could do is generate a test t

Is there a way to programmatically skip rows in a data drive unit test? I want to开发者_运维问答 run all rows on our build server, but only one row when debugging.


What you could do is generate a test that only performs its action on one row. Then create another test that is a single liner, calling the single row test. Make this your actual data-driven test.

Include the data-driven (skeleton) tests in your nightly build process and use the single row one during debugging.

0

精彩评论

暂无评论...
验证码 换一张
取 消