mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
feat(trace): a step can name the precondition it could not meet
A step that never had the app under test in front of it observed something else, and nothing in the trace said so. Index 0 carries the startup gate's verdict, so a run that never started is a trace holding that record and nothing else rather than a run that explored and found nothing.
This commit is contained in:
1 parent
6e85cac8b3
commit
1ebb8b191f
1 file changed
+6
@@ -61,6 +61,12 @@ type Step struct {
|
|||||||
// for this step, so downstream tooling can tell a deliberately-skipped
|
// for this step, so downstream tooling can tell a deliberately-skipped
|
||||||
// step from one that was verified and came back clean.
|
// step from one that was verified and came back clean.
|
||||||
SkippedVerification bool `json:"skipped_verification,omitempty"`
|
SkippedVerification bool `json:"skipped_verification,omitempty"`
|
||||||
|
// PreconditionFailure names a precondition of the run that was not met, so
|
||||||
|
// a step that never had the app under test in front of it cannot be counted
|
||||||
|
// as one that explored the app. Index 0 carries the startup gate's verdict:
|
||||||
|
// a trace holding that record and nothing else is a run that never started,
|
||||||
|
// which is a different thing from a run that explored and found nothing.
|
||||||
|
PreconditionFailure string `json:"precondition_failure,omitempty"`
|
||||||
// Witnesses records the violation witness for each property that newly
|
// Witnesses records the violation witness for each property that newly
|
||||||
// violated at this step: the cause and the extractor values at onset.
|
// violated at this step: the cause and the extractor values at onset.
|
||||||
Witnesses map[string]Witness `json:"witnesses,omitempty"`
|
Witnesses map[string]Witness `json:"witnesses,omitempty"`
|
||||||
|
|||||||
Reference in new issue
Block a user