Skip to content

-record flag example #18

@shaneHowearth

Description

@shaneHowearth

Hi I was trying to record the output for a test and I got the following

$ go test -run TestDictWordList -record
Foo {} no recording exists with this name: TestDictWordList/Foo

PASS

I also tried with a double dash between

$ go test -run TestDictWordList -- -record
Foo {} no recording exists with this name: TestDictWordList/Foo

PASS

The only way I could get it to work was

COPYIST_RECORD=1 go test -run TestDictWordList

FTR

$ go version
go version go1.17.5 darwin/arm64

go.mod has

github.com/cockroachdb/copyist v1.4.1

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