This explains the White Box Testing which we use to test the internal structure or internal coding of an application or a programming component.

  • RandomDevOpsDude@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    It covers each and every line of the source code, each and every conditional statement in the program and every loop otherwise known as iteration in the program.

    I think it is important to note 100% code coverage (“covers each and every line”) does not mean the tests are good tests.

    The myth of 100% code coverage

      • nous@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        Worst, 100% coverage leaves you without a tool that is helpful for finding places where your tests might be lacking. Code coverage reports can be used to improve tests, but are not an indication of good tests in of itself.

    • vampatori@feddit.uk
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Yep… I can get you 100% code coverage of a bug-laden, exploit-ridden piece of software effortless. It’s a useless measure.