Skip to content

go test -coverprofile fails under Go 1.20 #199

@prymitive

Description

@prymitive

I've upgraded go to 1.20 and suddenly I'm getting this error from testscript:

cannot merge cover profiles: cannot merge coverage profile from ...: no lines found in profile: <nil>

Seems like it might be related to coverage changes documented here: https://go.dev/testing/coverage/

Removing -coverprofile-... flag allows my tests to pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions