{"repo":"qiniu/goc","free":true,"listed":false,"github":"https://github.com/qiniu/goc","clone":"git clone https://github.com/qiniu/goc.git","description":"A Comprehensive Coverage Testing System for The Go Programming Language","language":"Go","stars":873,"topics":["go","coverage-testing","testing-tools"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"goc English 简体中文 goc is a comprehensive coverage testing system for The Go Programming Language, especially for some complex scenarios, like system testing code coverage collection and accurate testing. Enjoy, Have Fun! Installation Goc supports both GOPATH project and Go Modules project with Go 1.11+ . However, for developing goc, you need to install Go 1.13+ . Examples You can use goc tool in many scenarios. Code Coverage Collection for Your Golang System Tests Goc can collect code coverages at runtime for your long-run golang applications. To do that, normally just need three steps: 1. use goc server to start a service registry center: 2. use goc build to build the target service, and run the generated binary. Here let's take the simple-go-server project as example: 3. use goc profile to get the code coverage profile of the started simple server above: PS: Show Code Coverage Change at Runtime in Vscode We provide a vscode extension - Goc Coverage which can show highlighted covered source code at runtime. Tips 1. To understand the execution details of goc tool, you can use the --debug flag. Also we appreciate if you can provide such logs when submitting a bug to us. 2. By default, the covered service will listen a random port in order to communicate with the goc server. This may not be suitable in docker or kubernetes environment since the port must be exposed explicitly in order to be accessible by others in such environment. For this kind of scenario, you can use --agentp","default_branch":null,"files":null,"tree":[],"storefront":"/r/qiniu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/qiniu/goc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}