you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 2 years ago

With a comment on the test detailing why it matters so people don't just assume the test is out of date when it fails.

And ideally test the underlying result of x before y, not the fact that x is called before y.

And while we're at it, assert in Y that X has been called, and again comment the reason for the preconditions.

  • source
  • parent