Test coverage for all tests instead of just "changed only"

11 views
Skip to first unread message

David Cheng

unread,
Aug 1, 2024, 7:25:50 PM8/1/24
to Illuminated Cloud Q&A
Hello.  I have a configuration with multiple unit tests in it.  When I run the config with Coverage, the coverage window shows only the two classes that I changed today, instead of all classes in the config.  How can I get all test classes to appear in the coverage window?

Thanks
David

Scott

unread,
Aug 1, 2024, 7:59:41 PM8/1/24
to Illuminated Cloud Q&A, david...@idealistconsulting.com
Hi. There are two ways you can do this. First, you can just toggle it in the IDE's Coverage view, and it should retain your last setting across coverage sessions:

Show_Only_Files.png

Uncheck Show Only Files with Uncommitted Changes and it will show all files, and again, it should do that until you toggle it back.

Alternatively, you can change the IC2-specific When filtering coverage by changes, show setting to all and it will always show all production classes in the coverage view as it did before all of the recent unit testing/code coverage changes:

When_Filtering.png

Please let me know if that doesn't help.

Regards,
Scott Wells
Reply all
Reply to author
Forward
0 new messages