• I Cast Fist@programming.dev
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    3
    ·
    1 year ago

    I remember being asked to make unit tests. I wasn’t the programmer and for the better part of a week, they didn’t even let me look at the code. Yeah, I can make some great unit tests that’ll never fail without access to the stuff I’m supposed to test. /s

    • loutr@sh.itjust.works
      link
      fedilink
      arrow-up
      13
      ·
      1 year ago

      I guess it would make sense if you’re testing a public API? To make sure the documentation is sufficient and accurate.

      • Natanael@slrpnk.net
        link
        fedilink
        arrow-up
        10
        ·
        1 year ago

        Yeah blackbox testing is a whole thing and it’s common when you need something to follow a spec and be compatible

      • folkrav@lemmy.ca
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        He specifically said “unit tests” though, which aren’t black box tests by definition

    • lorty@lemmygrad.ml
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      It makes sense to do it like that if you are supposed to test requirements. Depending on the testing tools you have it might not be feasible unfortunately.