tree: b57b66a899fcfc27f9c45a8c69e9d23af2d2ad80 [path history] [tgz]
  1. resultstore/
  2. README.md
tilo/README.md

Tilo

Tilo is short for “Test Invocation LOgger”. It is a library for publishing build and test results to the Cloud Source build and test results UI. (example)

Testing

Generate gRPC mocks

Tilo gRPC code is tested using mocks generated from Google APIs. If those APIs change, the mocks need to be regenerated. To do this:

First, install gomock:

go get github.com/golang/mock/gomock
go install github.com/golang/mock/mockgen

Run gomock to generate gRPC mocks of the ResultStore API's ResultStoreUploadClient interface:

PKG=google.golang.org/genproto/googleapis/devtools/resultstore/v2
OUT=tilo/resultstore/mocks/mocks.go
mockgen $PKG ResultStoreUploadClient > $OUT

Docs: