add tips for goc merge
This commit is contained in:
parent
01c497af6c
commit
90700e454d
@ -7,7 +7,7 @@
|
|||||||
[](https://codecov.io/gh/qiniu/goc)
|
[](https://codecov.io/gh/qiniu/goc)
|
||||||
[](https://godoc.org/github.com/qiniu/goc)
|
[](https://godoc.org/github.com/qiniu/goc)
|
||||||
|
|
||||||
goc is a comprehensive coverage testing system for The Go Programming Language, especially for some complex scenarios,like system testing code coverage collection and
|
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.
|
accurate testing.
|
||||||
|
|
||||||
Enjoy, Have Fun!
|
Enjoy, Have Fun!
|
||||||
@ -55,6 +55,12 @@ Goc can collect code coverages at runtime for your long-run golang applications.
|
|||||||
|
|
||||||
3. To use a remote goc server, you can use `--center` flag to compile the target service with `goc build` or `goc install` command.
|
3. To use a remote goc server, you can use `--center` flag to compile the target service with `goc build` or `goc install` command.
|
||||||
|
|
||||||
|
4. The coverage data is stored on each covered service side, so if one service needs to restart during test, this service's coverage data will be lost. For this case, you can use following steps to handle:
|
||||||
|
|
||||||
|
1. Before the service restarts, collect coverage with `goc profile -o a.cov`
|
||||||
|
2. After service restarted and test finished, collect coverage again with `goc profile -o b.cov`
|
||||||
|
3. Merge two coverage profiles together: `goc merge a.cov b.cov -o merge.cov`
|
||||||
|
|
||||||
## RoadMap
|
## RoadMap
|
||||||
- [x] Support code coverage collection for system testing.
|
- [x] Support code coverage collection for system testing.
|
||||||
- [x] Support code coverage counters clear for the services under test at runtime.
|
- [x] Support code coverage counters clear for the services under test at runtime.
|
||||||
|
Loading…
Reference in New Issue
Block a user