How to review line-by-line unit test coverage?

39 views
Skip to first unread message

Sergiy Belozorov

unread,
Apr 20, 2022, 6:14:45 AM4/20/22
to code-coverage
Hi,

Gerrit shows different percentage for all-test and unit-test coverage next to each file, but appears to only display all-test line-by-line coverage in the diff view: https://screenshot.googleplex.com/6nseNeZy49t6Hia. How can users view the line-by-line coverage from unit tests only?

I have also discovered that linux-rel and linux-chromeos-rel bots, which compute coverage do upload a separate HTML report for unit test coverage, but I don't appear to have access to view it. Can the permissions on the parent Google Storage bucket be loosened a bit to allow viewing individual reports?

Sergiy Belozorov

unread,
Apr 21, 2022, 8:15:05 AM4/21/22
to code-coverage
Since it's a public list, adding screenshots inline instead of linking them from an internal Google site.

On Wed, Apr 20, 2022 at 12:14 PM Sergiy Belozorov <ser...@google.com> wrote:
Gerrit shows different percentage for all-test and unit-test coverage next to each file, but appears to only display all-test line-by-line coverage in the diff view: https://screenshot.googleplex.com/6nseNeZy49t6Hia. How can users view the line-by-line coverage from unit tests only?

6nseNeZy49t6Hia.png


I have also discovered that linux-rel and linux-chromeos-rel bots, which compute coverage do upload a separate HTML report for unit test coverage, but I don't appear to have access to view it.

edqW3Y8eamwtdYv.png


--
Sergiy Belozorov | Software Engineer | ser...@google.com

Google
Google Germany GmbH

Erika-Mann-Straße 33

80636 München


AG Hamburg, HRB 86891 | Sitz der Gesellschaft: Hamburg | Geschäftsführer: Paul Manicle, Liana Sebastian

Yuke Liao

unread,
Apr 21, 2022, 7:17:11 PM4/21/22
to Sergiy Belozorov, Prakhar Asthana, code-coverage
--
You received this message because you are subscribed to the Google Groups "code-coverage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to code-coverag...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/code-coverage/CAADpsr7n-gSr%2BxVksqNuzHFYPfaZLYCnxX0NJjj-MT2h95yPwA%40mail.gmail.com.

Prakhar Asthana

unread,
Apr 26, 2022, 1:19:48 PM4/26/22
to Yuke Liao, Ben Rohlfs, Sergiy Belozorov, code-coverage
Gerrit at present only supports showing line-by-line coverage for one metric. unit tests or overall. We chose to show the latter. Showing both would require a wider discussion with the gerrit team, as there were concerns about information overload to devs when it was implemented. Adding +Ben Rohlfs who I coordinated with sometime back.

To your second point, we do generate html report, but those at present are only for debugging purposes.





  •  Prakhar Asthana
  •  
Software Engineer,  Chrome Ops
  •  
past...@google.com
I accept anonymous feedback: go/pasthana-feedback

Reply all
Reply to author
Forward
0 new messages