• DontTakeMySky@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    10 months 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.