http://qs1969.pair.com?node_id=11150935


in reply to Re^8: What to test in a new module
in thread What to test in a new module

Yea again this assumes your demo code proves to be correct on the first swing, and I can count on one hand I've seen that happen.

I honestly don't see the point in writing tests for demo/poc code until you and the client are in agreement that the current stage looks correct. Changes after that are changes in scope and will probably require tests to be reworked anyway.

How do you know your top level API tests are stable? How do you know they're going to stay that way?

Three thousand years of beautiful tradition, from Moses to Sandy Koufax, you're god damn right I'm living in the fucking past

Replies are listed 'Best First'.
Re^10: What to test in a new module
by LanX (Saint) on Mar 11, 2023 at 22:24 UTC
    I think, we may have very different applications in mind.

    > How do you know your top level API tests are stable?

    Because they cement the specifications of the project.

    The only problem I see with my approach, is that clients tend to consider demo code as production ready.

    But I may have problems to express my ideas properly here.

    Cheers Rolf
    (addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
    Wikisyntax for the Monastery

      >Because they cement the specifications of the project.

      My question is how do you know your specifications are correct/stable? You're testing all this code up until it is stable, how much of that testing remains in its original form?

      Three thousand years of beautiful tradition, from Moses to Sandy Koufax, you're god damn right I'm living in the fucking past

        I'm confused, unstable specifications result in an unstable project.

        This can happen if communication is bad or priorities are messed up.

        Starting with demos, POCs and tests for the main features should minimize that risk.

        With some clients this still happens, but then it's their responsibility to pay for the extra costs.

        Cheers Rolf
        (addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
        Wikisyntax for the Monastery