Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Use 'golden' files pattern instead of hardcoding test output #204

Closed
@sdboyer

Description

@sdboyer

A bunch of our tests contain hardcoded output that we match against. This is OK for simple cases, but we've got fairly complex outputs to test, so it'd be much better to separate them out.

Let's follow the basic pattern of "golden files" used in stdlib - keep the output in a pre-named file that's committed, and have a flag we can use to update that file's output when needed.

h/t

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions