qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH] scripts/coverage: initial coverage comparison script


From: Stefan Hajnoczi
Subject: Re: [RFC PATCH] scripts/coverage: initial coverage comparison script
Date: Wed, 29 Mar 2023 07:55:48 -0400

On Wed, 29 Mar 2023 at 05:24, Alex Bennée <alex.bennee@linaro.org> wrote:
>
> This is a very rough and ready first pass at comparing gcovr's json
> output between two different runs. At the moment it will give you a
> file level diff between two runs but hopefully it wont be too hard to
> extend to give better insight.
>
> After generating the coverage results you run with something like:
>
>   ./scripts/coverage/compare_gcov_json.py \
>     -a ./builds/gcov.config1/coverage.json \
>     -b ./builds/gcov.config2/coverage.json
>
> My hope is we can use this to remove some redundancy from testing as
> well as evaluate if new tests are actually providing additional
> coverage or just burning our precious CI time.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> Cc: Kautuk Consul <kconsul@linux.vnet.ibm.com>
> ---
>  scripts/coverage/compare_gcov_json.py | 118 ++++++++++++++++++++++++++
>  1 file changed, 118 insertions(+)
>  create mode 100755 scripts/coverage/compare_gcov_json.py

Cool!

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]