• Feyd@programming.dev
    link
    fedilink
    arrow-up
    15
    ·
    2 天前

    I find AI is amazing at writing unit tests

    Some of my coworkers say this too. The tests are generally garbage that don’t test what they say they do. All this says is that you don’t care how useful your tests are outside of checking a box

    • iocase@lemmy.zip
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      2 天前

      Yes you have to verify it yourself you don’t just trust it. The biggest benefit is tests are extremely to read and falsify like simple scripts. It’s faster to generate it than type it by hand, and any edits I make are minimal or require a reprompt that gets it right the second time.

      • Tempy@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        15 小时前

        Right, is it faster including the time it’s taken you to verify that the tests are testing what they should be testing and isn’t just testing the implementation as written?