Skip to content

Approve behavioural changes by some "oracle" #18

@maxbechtold

Description

@maxbechtold

This is related to #2 in that it allows approval on-the-fly, but in a more elaborated manner.

E.g. there's a use case to adjust a program while it is only covered by golden master tests. This could be as simple as adapting the output format, or more complex changes. For very regular changes (e.g replace space by tab) there could be an automatic way to approve changes, if the output changes in the described way. This could leverage the power of tools like kdiff3 and sed.

Questions:

  • is it enough to let the user provide an "oracle" method like assess(input, output)?
  • how to ensure this "oracle" is only active once/for the current change?
  • how does this relate to the comparison built into FastApproval (cf. ExecutableDifferenceReporter)?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions