Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.spockframework.runtime.extension.IAnnotationDrivenExtension;
import org.spockframework.runtime.extension.IMethodInterceptor;
import org.spockframework.runtime.model.FeatureInfo;
import org.spockframework.runtime.model.MethodInfo;
import org.spockframework.runtime.model.SpecInfo;

Expand Down Expand Up @@ -36,4 +37,9 @@ public void visitSpecAnnotation(TrackScopeContinuations annotation, SpecInfo spe
}
}
}

@Override
public void visitFeatureAnnotation(TrackScopeContinuations annotation, FeatureInfo feature) {
// Override Spock's default rejection of feature annotations so discovery succeeds.
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ class ScopeDiagnosticsSpockFixtureTest extends InstrumentationSpecification {
true
}

@TrackScopeContinuations(enabled = false, reason = "synthetic fixture testing method-level opt-out")
def "runs with diagnostics disabled for this feature"() {
expect:
ScopeDiagnostics.recordingWindow() == null
}

def "restarts recording after aborted suite setup"() {
given:
scopeDiagnosticsSuiteSetupPending = true
Expand Down
Loading