Maelstrom is a fast Rust, Go, and Python test runner that runs every test in its own container. Tests are either run locally or distributed to a clustered job runner.
First, we'll have to compile the code with coverage instrumentation enabled.
Second, when we run the code, we'll need to get the coverage profile back from the test runner. Go test also provides for printing a summary of coverage percentages without creating the whole coverage profile. We'd have to decide if we wanted to put that in the UI somehow.
There are various go test flags regarding the coverage profile type and the instrumentation that we'd need to parse and then give to go test -c.
There are few things to consider.
First, we'll have to compile the code with coverage instrumentation enabled.
Second, when we run the code, we'll need to get the coverage profile back from the test runner. Go test also provides for printing a summary of coverage percentages without creating the whole coverage profile. We'd have to decide if we wanted to put that in the UI somehow.
There are various
go test
flags regarding the coverage profile type and the instrumentation that we'd need to parse and then give togo test -c
.