Boulder: Rewrite table-driven tests as 1.7 subtests

Created on 2 Dec 2016  路  5Comments  路  Source: letsencrypt/boulder

Most helpful comment

Yup, in quite a few of the existing tests we don't provide any context about which of the tests in a table actually failed which means you have to add debug statements or eyeball it. This provides context in the error messages for which specific subtest failed which makes debugging much simpler.

All 5 comments

Does this gain us enough benefit to be worth the time spent rewriting?

Yup, in quite a few of the existing tests we don't provide any context about which of the tests in a table actually failed which means you have to add debug statements or eyeball it. This provides context in the error messages for which specific subtest failed which makes debugging much simpler.

Yup, in quite a few of the existing tests we don't provide any context about which of the tests in a table actually failed which means you have to add debug statements or eyeball it.

This is an annoying thing I've definitely encountered. I'd be supportive of converting tests over as we're touching code near them or writing new tests.

@cpu should we close this issue?

@klebervirgilio This one can't be closed yet. Here's one example of a test that could be rewritten to use subtests. I think there are lots of others :-(

Was this page helpful?
0 / 5 - 0 ratings