adammcarter / adammcarter/swift-snapshot-testing-macros
ADR for @ SnapshotTest
- Vorherrschende Sprache
- Swift
- Sterne
- 59
- Forks
- 3
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
While we can infer this, we can have the scenario where people want some helper functions in their @SnapshotSuite which would then get marked as @SnapshotTest by default if they return valid views. We could have an opt-out mechanism instead which could be valid as helpers are generally used less than their tests that call them, but not quite as discoverable, especially for those used to SwiftTesting. The idea isn't less code always, especially when the mental model of SwiftTesting and tests in general is to opt 'in'.
Beitragsleitfaden
Rechercherichtung
Read the current @SnapshotSuite and @SnapshotTest macro behavior first, then compare the default marking behavior with the proposed opt-out approach. Done means an ADR records the chosen model, its rationale, and how helper functions are handled; the issue names no file or test to run.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- swift
- Bereich
- documentation, testing
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100