loading...
Cover image for Matt's Tidbits #48 - Separating out search results for test code

Matt's Tidbits #48 - Separating out search results for test code

mpeng3 profile image Matthew Groves Originally published at Medium ・1 min read

Last time I shared an Espresso ViewMatcher for finding RecyclerView items by title. This week I have a quick tidbit on how to group search results based on whether they're in production code or tests.

This week I was using Android Studio's search feature (as I do on an almost daily basis) and was manually collapsing occurrences that occurred in test code when a coworker showed me a neat trick - Android Studio has a button for grouping search results. Typically your "Find" view might look like this:

This can get cumbersome as "real" production occurrences are intermixed with calls to test code. But, press this button:

And voilà! Now your results are grouped so you can easily focus on just production code:

What other cool Android Studio features do you use that help you be more efficient? And, please follow me on Medium if you're interested in being notified of future tidbits.

Interested in joining the awesome team here at Intrepid? We're hiring!

This tidbit was discovered on December 18, 2019.

Posted on by:

mpeng3 profile

Matthew Groves

@mpeng3

Software engineer with 10+ years of professional experience in C++, C#, Java, and Kotlin.

Discussion

markdown guide