开发者

Data Drive Unit Test - Programmatically Skipping Rows

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜