HBO-i Logo
Component test

Component test

Default set

Why

Test a subsystem or component in isolation to ensure its correctness before integrating it with other components or modules.

How

In a component test, you test whole components or subsystems, instead of the atomic chunks of code that you test in unit tests. Test the component against its input and output relations (e.g. specified via interfaces). Component testing compares the outputs with expected results given pre-defined inputs.

Practice

Companies that use component testing want simple and clear interfaces between the components, which they view as an essential precondition for successful component testing. Microservices are a way to accomplish this and are more commonly used nowadays.

Ingredients

Phases

Trade-offs

InspirationData
ExpertiseFit
OverviewCertainty

Read more about the trade-offs: Inspiration or Data / Expertise or Fit / Overview or Certainty.