Coder Social home page Coder Social logo

Comments (5)

CarlJi avatar CarlJi commented on August 20, 2024

@gujing032 是否可以再具体描述下你这里的"增量"?

我理解的增量场景大概率是 - 作为研发,我提了一个PR/MR, 我只关心我这个PR的里面的代码覆盖率变化情况。而这个场景其实有些考量:

  1. 代码放在哪里?github or gitlab?
  2. 基准覆盖率结果如何获得?

所以这是个强环境相关的场景。目前goc落地了在Github里基于Prow的增量覆盖率场景,如果大家也使用Prow,可以尝试下: https://github.com/qiniu/goc/blob/master/cmd/diff.go#L51

from goc.

CarlJi avatar CarlJi commented on August 20, 2024

No further questions, closing it now.

from goc.

uveege avatar uveege commented on August 20, 2024

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.

CarlJi avatar CarlJi commented on August 20, 2024

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.

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.

starztp avatar starztp commented on August 20, 2024

能不能提供一个实际的例子来介绍如何使用goc做增量代码的覆盖?

from goc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.