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.

Change test harness to support testing full output of a command? #973

@carolynvs

Description

@carolynvs

At the moment it would be easy to accidentally break verbose logging (#968), and not realize until someone opens a bug. It would be useful to have a harness test for each command that checks the full command output (not just stdout, since verbose is sent to stderr).

Tests

  • dep init -v
  • dep ensure -vendor-only -v
  • dep ensure -vendor-only -dry-run
  • dep prune -v
  • dep prune -v -dry-run
  • ... there's more in this matrix I'm sure

The harness currently supports checking stdout, and separately stderr, which is awkward for this type of test, where the output is interleaved. If we could have another file in the testcase directory, like output.txt, which was included in the -update golden flag, that would be easier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions