blockchain-carbon-accounting icon indicating copy to clipboard operation
blockchain-carbon-accounting copied to clipboard

Publish test reports for Datalock chaincode tests

Open hs2361 opened this issue 4 years ago • 0 comments
trafficstars

PR #338 added in tests for the Datalock chaincode written in Go-lang. At the moment, test reports are published for the results of the tests of the TypeScript chaincode, with the help of the test-reporter Action. However, this Action does not yet provide support for Go tests. One option would be to contribute to this Action, and add a parser for the Go tests. This should probably be an easier option, since all the other components of using annotations and uploading the HTML report are already in place.

An alternative option which can be used is this go-test-report package, which takes in the test report as a JSON and creates an HTML report. However, publishing this report would require some work using the GitHub Checks API to properly add annotations.

hs2361 avatar Nov 04 '21 08:11 hs2361