Coverage report - export used CSS

5,802 views
Skip to first unread message

matthias.ku...@resolutionmedia.dk

unread,
Jan 26, 2018, 11:17:04 AM1/26/18
to Google Chrome Developer Tools
Im using the coverage report in develoepr tools to find out which CSS rules are executed on and which not. 

However, im missing a way to copy all the green marked code lines :( - Is this something that could be considered for a future update? 
Otherwise one has to go through all lines by hand and copy paste everything manually.

I guess if the lines are already color coded, it should be a quick fix to such a function?

regards,

Kayce Basques

unread,
Jan 31, 2018, 2:24:34 PM1/31/18
to Google Chrome Developer Tools
Hey Matthias,

It's on our roadmap for this quarter.

It's also potentially possible to hack together your own solution using Puppeteer.

Carter Douglas

unread,
Oct 25, 2018, 1:43:19 AM10/25/18
to Chrome DevTools
Definitely, needed! It can most definitely be a time saver when your cyphering your way through 100,000+ lines of css/js code.

Any ETA on the launch?

javi garcia

unread,
Oct 29, 2018, 11:14:36 AM10/29/18
to Chrome DevTools
+1

and another functionality to export styles needed for above the fold :-)

thanks

gilp...@gmail.com

unread,
Feb 3, 2019, 11:31:35 AM2/3/19
to Chrome DevTools
I cant believe this was not implemented yet on chrome... absurd since the tool already shows red/green code for almost 2 years and still no way to export data. 

PhistucK

unread,
Feb 3, 2019, 11:33:27 AM2/3/19
to Google Chrome Developer Tools
Exporting code coverage report was implemented recently, perhaps that can help make this easier?

PhistucK


--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/9b660391-5a9a-41cf-a65f-8d77171001dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

gilp...@gmail.com

unread,
Feb 3, 2019, 12:10:40 PM2/3/19
to Chrome DevTools
@PhistucK thanks for your answer that is GREAT NEWS!!!! Loved! I am just not sure where I download that latest version of Chrome/Canary. I am already using the latest Chrome installation, shouldnt it be working with the EXPORT feature?


Em domingo, 3 de fevereiro de 2019 14:33:27 UTC-2, PhistucK escreveu:
Exporting code coverage report was implemented recently, perhaps that can help make this easier?

PhistucK


On Sun, Feb 3, 2019 at 6:31 PM <gilp...@gmail.com> wrote:
I cant believe this was not implemented yet on chrome... absurd since the tool already shows red/green code for almost 2 years and still no way to export data. 

Em quarta-feira, 31 de janeiro de 2018 17:24:34 UTC-2, Kayce Basques escreveu:
Hey Matthias,

It's on our roadmap for this quarter.

It's also potentially possible to hack together your own solution using Puppeteer.

https://github.com/GoogleChrome/puppeteer

On Friday, January 26, 2018 at 8:17:04 AM UTC-8, matthias.ku...@resolutionmedia.dk wrote:
Im using the coverage report in develoepr tools to find out which CSS rules are executed on and which not. 

However, im missing a way to copy all the green marked code lines :( - Is this something that could be considered for a future update? 
Otherwise one has to go through all lines by hand and copy paste everything manually.

I guess if the lines are already color coded, it should be a quick fix to such a function?

regards,

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.

PhistucK

unread,
Feb 3, 2019, 12:48:51 PM2/3/19
to Google Chrome Developer Tools
If you are using the canary, it should be there. Chrome Dev also has it -
image.png

PhistucK


On Sun, Feb 3, 2019 at 7:10 PM <gilp...@gmail.com> wrote:
@PhistucK thanks for your answer that is GREAT NEWS!!!! Loved! I am just not sure where I download that latest version of Chrome/Canary. I am already using the latest Chrome installation, shouldnt it be working with the EXPORT feature?

Em domingo, 3 de fevereiro de 2019 14:33:27 UTC-2, PhistucK escreveu:
Exporting code coverage report was implemented recently, perhaps that can help make this easier?

PhistucK


On Sun, Feb 3, 2019 at 6:31 PM <gilp...@gmail.com> wrote:
I cant believe this was not implemented yet on chrome... absurd since the tool already shows red/green code for almost 2 years and still no way to export data. 

Em quarta-feira, 31 de janeiro de 2018 17:24:34 UTC-2, Kayce Basques escreveu:
Hey Matthias,

It's on our roadmap for this quarter.

It's also potentially possible to hack together your own solution using Puppeteer.

https://github.com/GoogleChrome/puppeteer

On Friday, January 26, 2018 at 8:17:04 AM UTC-8, matthias.ku...@resolutionmedia.dk wrote:
Im using the coverage report in develoepr tools to find out which CSS rules are executed on and which not. 

However, im missing a way to copy all the green marked code lines :( - Is this something that could be considered for a future update? 
Otherwise one has to go through all lines by hand and copy paste everything manually.

I guess if the lines are already color coded, it should be a quick fix to such a function?

regards,

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/41a652ac-c189-4e15-b39d-dbff75dcddfc%40googlegroups.com.

Kayce Basques

unread,
Feb 4, 2019, 3:20:58 PM2/4/19
to Chrome DevTools

Fabrizio Ferrari

unread,
Mar 27, 2019, 9:37:10 AM3/27/19
to Chrome DevTools
Would be nice being able to export used code for every single CSS/script as a simple text file, so to have ready-to-use files ;)

Philipp Sowinski

unread,
Mar 28, 2019, 11:33:34 AM3/28/19
to Chrome DevTools
Yes, exporting just the used css would be awesome!

Is this coming?

Daniele

unread,
Jan 4, 2020, 10:09:46 AM1/4/20
to Chrome DevTools
I created a small project in github that extracts only the used css rules from a result of a coverage session.
It also group rules by single css, beautify the code and automatically create a zip with all content.

Maybe it can be useful. There is also a link to a working example on stackblitz.

in...@s-2-b.com

unread,
Apr 20, 2020, 11:02:05 AM4/20/20
to Chrome DevTools

20.042.jpg

Hello! Thanks It works. Only the problem with @media is not resolved. 

суббота, 4 января 2020 г., 18:09:46 UTC+3 пользователь Daniele написал:
Я создал небольшой проект в github, который извлекает только использованные правила CSS из результатов сеанса покрытия.
Он также группирует правила по одному CSS, украшает код и автоматически создает почтовый индекс со всем содержимым.

Может быть, это может быть полезно. Также есть ссылка на рабочий пример на stackblitz.


В четверг, 28 марта 2019 года в 16:33:34 UTC + 1, Филипп Совинский написал:
Да, экспорт только использованного CSS был бы потрясающим!

Это идет?

В среду, 27 марта 2019 года, 14:37:10 UTC + 1 Фабрицио Феррари написал:
Было бы неплохо иметь возможность экспортировать используемый код для каждого CSS / скрипта в виде простого текстового файла, чтобы иметь готовые к использованию файлы;)

В понедельник, 4 февраля 2019 года, в 12:20:58 UTC-8, Кейси Басков написал:
Reply all
Reply to author
Forward
0 new messages