Skip to content

watchOS unit-lane observation path for hostability helpers #379

Description

@schatt

Summary

PlatformContainerStructureAssertions.isHostable (and UIKit Form/Section/VStack fallbacks) are gated #if canImport(UIKit) && !os(watchOS), so on watchOS they return false. That makes hostability smokes unusable on the watch unit lane.

Goal

Add a cheap, truthful watchOS observation path (or an explicit skip/unavailable contract) so watch unit tests do not claim hostability they cannot observe.

Options (not prescriptive)

  • Host via WatchKit / SwiftUI hosting APIs available on watchOS Simulator
  • Type-name / mirror-only checks where hosting is unavailable
  • Mark hostability helpers unavailable on watch and route tests to pure-logic asserts instead

Out of scope

First-class watchOS product support → #377.

Parent

Follow-up from #219 (foundational secondary-platform test honesty). Related: #233.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions