Skip to main content

SmartHopper.Components.Test

Test-only Grasshopper components. Not built in Release and must never contain production components — it exists because unit tests can't reference Rhino/Grasshopper.

Why it exists​

SmartHopper's xUnit test projects (SmartHopper.*.Tests) run in CI without a Rhino license or Grasshopper runtime. Anything that does need Grasshopper — canvas behavior, data-tree wiring, component lifecycle — is exercised here instead, inside Rhino, as real components.

Rule of thumb​

  • Logic that can run headless → a normal xUnit test.
  • Behavior requiring GH_Document, params, or the canvas → a testing component in this project.