Quality Testing

Quality is delighting customers

Hi All,

 

Please can any one share knowledge on Cyclomatic Complexity

 

Thanks,

Raja

Views: 147

Reply to This

Replies to This Discussion

Cyclomatic complexity  measures the amount of decision logic in a single software module. It is used for two related purposes in the structured testing methodology. First, it gives the number of recommended tests for software. Second, it is used during all phases of the software lifecycle, beginning with design, to keep software reliable, testable, and manageable. Cyclomatic complexity is based entirely on the structure of software's control flow graph.

Cyclomatic complexity is defined for each module to be e - n + 2, w....

M = EN + 2P

where

M = cyclomatic complexity
E = the number of edges of the graph
N = the number of nodes of the graph
P = the number of connected components


Or
M = Number of closed loops + 1

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2020   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service