unit-testingtestingwhite-box-testing

What is difference between Prime Path Testing and Path Testing?


I got following types of white box testing list:

Control flow testing 
Data flow testing 
Branch testing 
Statement coverage 
Decision coverage 
Modified condition/decision coverage
Prime path testing 
Path testing

Could anyone give me example through code that what is difference between Prime Path Testing and Path Testing?


Solution

  • Prime Path Testing is a special case of Path testing where: "A path (p) is prime if (p) is a maximal simple path i.e. (p) cannot be extended without losing simplicity."

    This is a nice explanation: http://studylib.net/doc/5705864/prime-path-coverage