Open kraih opened 4 years ago
And you don't have to convert all tests at once, one PR per test file should be fine.
We've converted promise.t in its entirety first, so there is an example for what's expected.
And cgi.t has been converted so there's an example for a test with lite app.
Please keep PRs to one converted test file at a time. We are having issues with reviewing very large patches.
There are a few tests that have a lot of shared state in between blocks. Those will require special consideration, and are probably better skipped unless you want to really dive into the code and understand what exactly was meant to be tested and discuss solutions with the team.
Since we keep linking to the issue, it is probably worth mentioning that all new code should always use subtests. Even if the test file it is added to has not been converted yet.
Not a particularly hard task, but converting all tests is a lot of work. We want to go from:
to:
Block comments become the subtest description, and then we add a blank line in between unrelated test cases within the subtest. Here is another example.