byexample icon indicating copy to clipboard operation
byexample copied to clipboard

Try to capture the tags even if the example fails as long as it makes sense

Open eldipa opened this issue 7 years ago • 0 comments

Describe the feature you'd like If an example fails, non of its named tags capture anything. Then, a subsequent example that paste some of those captured tags will fail because there isn't such in the clipboard (#65) or it may produce incorrect outputs (#81).

We could do the same heuristic that we do for showing diffs: try to capture as much as possible and if a named tag captures something far enough from an error (a difference between the expected and the got) we could consider it valid.

We already do this for showing the diffs; we could do it to improve the paste mode and reduce the impact of #65 .

Additional context (optional) Probably this should be done in parallel with #81 and the #65 should be reviewed after this.

eldipa avatar Mar 08 '19 12:03 eldipa