MCPcopy
hub / github.com/grafana/k6 / WithStopWithTestError

Interface WithStopWithTestError

output/types.go:100–103  ·  view source on GitHub ↗

WithStopWithTestError allows output to receive the error value that the test finished with. It could be nil, if the test finished normally. If this interface is implemented by the output, StopWithError() will be called instead of Stop(). TODO: refactor the main interface to use this method instead

Source from the content-addressed store, hash-verified

98// TODO: refactor the main interface to use this method instead of Stop()? Or
99// something else along the lines of https://github.com/grafana/k6/issues/2430 ?
100type WithStopWithTestError interface {
101 Output
102 StopWithTestError(testRunErr error) error // nil testRunErr means error-free test run
103}
104
105// WithBuiltinMetrics means the output can receive the builtin metrics.
106type WithBuiltinMetrics interface {

Callers 2

stopOutputsMethod · 0.65

Implementers 5

Outputoutput/cloud/expv2/output.go
Outputinternal/output/cloud/output.go
versionedOutputMockinternal/output/cloud/output_test.go
Outputinternal/output/opentelemetry/output.g
extensioninternal/dashboard/extension.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…