Skip to main content

Component Diagrams

A component diagram is a top-down view of which actors communicate with which others across a test run. It is derived from the same captured interactions that drive sequence diagrams, so no additional instrumentation is required. If your tests already produce sequence diagrams, you already get component diagrams.

Per-test view

When a test has recorded interactions between two or more actors, a Component Diagram tab appears in the HTML report next to the Sequence Diagram tab. The tab is hidden for tests that have no interactions.

System View

The top-level System View page in the report sidebar shows an aggregate component diagram built from every interaction recorded across the entire test run. It gives a single, consolidated picture of how the components in your system are connected. The page is not shown when no interactions were captured during the run.

How edges are computed

  • Edges are (from, to) pairs extracted from captured interactions.
  • Repeat invocations between the same pair are deduplicated to a single edge.
  • Self-loops (an actor invoking itself) are kept.
  • Bidirectional pairs render as two separate arrows — A → B and B → A — each pointing in the direction it was recorded.

Configuration

There is no configuration specific to component diagrams today. The SetupStrategy option — documented in Configuration — controls whether setup interactions are included, in the same way it does for sequence diagrams.

Limitations

  • Components are rendered as plain [Name] boxes. Typed glyphs (database, queue, and so on) are not yet supported in the component view.
  • Edges carry no labels and no call counts.
  • Very large diagrams are not automatically split or simplified.