Multiple Condition Coverage Testing

Posted by David Relihan on Stack Overflow See other posts from Stack Overflow or by David Relihan
Published on 2010-05-17T22:25:44Z Indexed on 2010/05/17 22:30 UTC
Read the original article Hit count: 358

Hi Folks,

When using the White Box method of testing called Multiple Condition Coverage, do we take all conditional statements or just the ones with multiple conditions? Now maybe the clues in the name but I'm not sure.

So if I have the following method

void someMethod()
  {

      if(a && b && (c || (d && e)) )  //Conditional A
      {

      }

      if(z && q)   // Conditional  B
      {
      }

  }

Do I generate the truth table for just "Conditional A", or do I also do Conditional B?

Thanks,

© Stack Overflow or respective owner

Related posts about testing

Related posts about software-testing