Skip to content

Allow users to configure which annotations/superclasses identify test methods#572

Closed
Nick-VdP wants to merge 1 commit intodiffplug:mainfrom
Nick-VdP:feat/configurable-test-annotations
Closed

Allow users to configure which annotations/superclasses identify test methods#572
Nick-VdP wants to merge 1 commit intodiffplug:mainfrom
Nick-VdP:feat/configurable-test-annotations

Conversation

@Nick-VdP
Copy link
Copy Markdown

Selfie's GC logic used hardcoded lists of test annotations and superclasses to determine which snapshots are stale. Move these into overridable testAnnotations and testSuperclasses properties on SelfieSettingsAPI so users with custom composed annotations or Spec-like base classes can register them. Class resolution is cached lazily on SnapshotFileLayoutJUnit5 and threaded through to findTestMethodsThatDidntRun and classExistsAndHasTests.

… methods

Selfie's GC logic used hardcoded lists of test annotations and superclasses to determine which snapshots are stale. Move these into overridable `testAnnotations` and `testSuperclasses` properties on `SelfieSettingsAPI` so users with custom composed annotations or Spec-like base classes can register them.
@Nick-VdP Nick-VdP force-pushed the feat/configurable-test-annotations branch from 1ed9093 to d23cf11 Compare April 30, 2026 12:55
@Nick-VdP Nick-VdP closed this Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant