simplecov-ruby/simplecov

Bad usability on bigger projects (>1000s files)

Drowze opened this issue ยท 0 comments

Hello ๐Ÿ‘‹

First of all, thanks a lot on the fantastic project! I've been using simplecov since I started working with Ruby years ago. It's fantastic that we have this available for the community ๐Ÿ˜„

That being said, I'm currently working in projects that are farily big recently and, my biggest struggle with Simplecov lately is actually opening the generated HTML - it loads the full project source code into a single html file. This is fine for small and medium-sized projects, but gets quickly slow and un-manageable for bigger projects (in my case according simplecov, 5k files, 82k relevant lines and 175k branches). My browser nearly crashes due to high memory usage when trying to open the generated HTML. See:
Screenshot 2024-03-20 at 09 56 47

Given that simplecov generates a static html, I'm not 100% sure of what would be the best solution (if we want to stick with static html) but this is a discussion I'd like to raise! Has there been any thought around the usability of simplecov for bigger projects?

By the way, while I know this might be a simplecov-html issue, I believe this might require some changes here on the main repo as well, so I think it's better to bring the discussion here first.