DEV Community

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

Posted on • Originally published at Medium

3

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

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.

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay