Skip to content

Feature Request: gopherjs test support running and verifying example code. #239

Closed
isp1r0/gopherjs
#2
@dmitshur

Description

@dmitshur

One feature of go test command that is handy for short/quick/easy to write tests is that it runs and verifies example code (if it has a concluding comment with "// Output:").

See https://godoc.org/testing#hdr-Examples.

It'd be a nice enhancement if gopherjs test supported that too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gopherjs-toolRelated to the gopherjs tool or its build system (but not the compiler itself).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions