4

Does a pull request review consist of testing, code review or both and how long should the average PR take?

I don't know whether the testing just involves testing the functionality that's been altered, or thoroughly testing the whole app and what purpose this has if the author has already tested this.

If it involves a code review should it be a brief glance over within github or a thorough review including a parse through the code in action within your chosen IDE.

I'm part of a paid development team where 100% of our PRs come from our team.

1 Answers1

7

There are procedural tasks to be performed in a code review:

  • That the code abides to the coding standards agreed upon by the team.
  • That it is complete regarding unit tests, documentation, etc.
  • Others in the same vein.

But the most important tasks in any code review are to verify that:

  • You can understand the code (all of it) because it is written clearly.
  • The code is correct in the sense of absence of errors (bugs).
  • The code is correct in the handling of expected border cases.
  • The code is correct in that it performs the intended task.

Additionally, if you're polite, you can suggest better (clearer, more efficient, library-based) ways of implementing the functionality.

Apalala
  • 2,283