Comments (5)
@gujing032 是否可以再具体描述下你这里的"增量"?
我理解的增量场景大概率是 - 作为研发,我提了一个PR/MR, 我只关心我这个PR的里面的代码覆盖率变化情况。而这个场景其实有些考量:
- 代码放在哪里?github or gitlab?
- 基准覆盖率结果如何获得?
所以这是个强环境相关的场景。目前goc落地了在Github里基于Prow的增量覆盖率场景,如果大家也使用Prow,可以尝试下: https://github.com/qiniu/goc/blob/master/cmd/diff.go#L51
from goc.
No further questions, closing it now.
from goc.
in my view, the increment
/change
/delta
is not for previous coverage
but code
, which means we only aim at how many new codes we have covered in a new branch.
(I think the manager tends to regard more about the former, but as a QA, I the later)
by my mean, I use git diff
to get code changes, then joint profile to filter what has been covered in our test, so that QA can add more cases for the uncovered codes in new branch.
from goc.
in my view, the
increment
/change
/delta
is not forprevious coverage
butcode
, which means we only aim at how many new codes we have covered in a new branch. (I think the manager tends to regard more about the former, but as a QA, I the later)by my mean, I use
git diff
to get code changes, then joint profile to filter what has been covered in our test, so that QA can add more cases for the uncovered codes in new branch.
Sure, the kind of scenario you're talking about seems make sense. and i think combining use git diff
and goc profile
is enough here. no need to use goc diff
. @uveege
By the way,i am reopening this issue in order to let more users seeing these discussion easily.
from goc.
能不能提供一个实际的例子来介绍如何使用goc做增量代码的覆盖?
from goc.
Related Issues (20)
- goc-v2编译时指定了LD_LIBRARY_PATH貌似不起作用 HOT 1
- goc v2版列出服务列表命令后希望能刷新.goc.kvstore文件
- 文件实际上是一个符号链接(symlink), 会build失败
- 我们这边一个项目部署之后会出现多个服务,这时候注册到goc-center的pod会缺失,请问有啥办法解决吗
- 请教下同一个版本内发布了多次代码,如何统计全量的覆盖率 HOT 5
- 请问: goc是否支持分支覆盖率统计
- 对于打包镜像和部署容器非同一个的情况
- 公司内部服务统一了出口ip,有什么解决办法吗
- goc build --center=<远程goc server>成功后,没有生成xx_profile_listen_addr文件。 HOT 2
- goc build --singleton 时 如何获取coverage file HOT 1
- FATA Fail to build: fail to generate new go.mod: ... invalid go version '1.22.0': must match format 1.23 HOT 2
- goc运行大概8天就会重启一次,重启时的日志如下
- dump 代码覆盖率报错 HOT 4
- 重命名的文件,会被merge一起 HOT 2
- goc clear清理覆盖率失败了
- goc build main.go报错 HOT 5
- @CarlJi 我们也是一样的问题,goc build -o不允许指定具体的main包进行编译吗,只能cd到main包所在的目录下,然后goc自己去搜索main包,然后编译吗,如果这个目录下有多个main包,就会出现楼主上面的那个报错 HOT 3
- goc 目前支持1.19吗 HOT 1
- 是否支持 Pull Request 增量代码覆盖率? HOT 3
- 希望支持go版本1.20~1.23,Thanks! HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goc.