Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is branch coverage the same as decision coverage?

I'm learning software testing right now, and I found that there are a lot of coverage criterias out there. And something just confused me.

Is branch coverage equals to decision coverage? wiki said it's not the same here, I read the reference document, but I didn't found something such as: branch coverage is not decision coverage, maybe it's because my poor English...

But other tutors all says branch coverage is decision coverage. So can anyone give me a clear answer about this? thanks a lot.

like image 636
shengy Avatar asked Sep 13 '12 02:09

shengy


1 Answers

Not exactly. As ISTQB Foundation book gives, branch coverage is closely related to decision coverage and at 100% coverage they give exactly the same results. Decision coverage measures the coverage of conditional branches; branch coverage measures the coverage of both conditional and unconditional branches. The Syllabus uses decision coverage, as it is the source of the branches. Some coverage measurement tools may talk about branch coverage when they actually mean decision coverage. (c) ISTQB foundation book.

Decision coverage example:

Hope now It comes clear for you)

like image 172
eugene.polschikov Avatar answered Sep 18 '22 13:09

eugene.polschikov