Sunday, January 24, 2010

Unit Test Coverage Why Is A Highly Coupled Module Difficult To Unit Test?

Why is a highly coupled module difficult to unit test? - unit test coverage

Please answer a few points why the module is very hard together to test the device. And what if the tightly coupled module well.

1 comment:

afcghd0 said...

Unit tests can be performed in a module

Cohesion in a single module / component is the extent of their responsibilities to a unit of the aims of which is greater consistency better.

Someone had vague reference to the decomposition here. Clarify?
How about: "The cohesion is inversely proportional to the tasks has a module / component.

Coupling between the modules of the components, the degree of interdependence is less coupling better.

Size: number of connections between routines
Intimacy: the immediacy of the relationship between routines
Visibility: the importance of the relationship between routines
Flexibility: The ease of modification of connections between routines

A principle of the first order of software architecture is to increase cohesion and reduce coupling.

so that the program does not properly Clutch

reduce coupling the test program will promote unity

Post a Comment