A collection of package and tools for testing LinuxBoot
The gotest
command is a wrapper for running go test --json
and preparing test data for rendering them with GoTestWeb
gotest run go test --json ./...
gotest serve
gotest live go test --json ./...
gotest gen
This is possible using go.rice, first install the rice
tool.
Use one of the following command set to build:
- by generating go code
rice embed-go -i ./pkg/gotestweb/
go build ./cmds/gotest/
- by appending an archive
go build ./cmds/gotest/
rice -i ./pkg/gotestweb/ append --exec gotest
In both case you get a gotest
executable that embed the GoTestWeb data.
You can move it anywhere and still can use gotest gen
.