Skip to content
Eclipse plugin to show and hide callers from tests in the call hierarchy
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

JDT Call Hierarchy: Filter Test Code

tldr; Eclipse plugin to show and hide callers from tests in the call hierarchy

Often when browsing a code base, you want to know where certain constructors/methods are used. JDTs call hierarchy offers great insight but easily becomes messy when you have a lot of tests using the same methods as well. Depending on your activity, the test code may or may not be relevant to look at (e.g. where is this code used in production code). JDT itself already offers a filter to ignore test code in the call hierarchy but the feature is well hidden and hard to toggle.




The toggle is available as command and thus can be triggered using

⌘ Command + 3 + Filter Test Code


Use the following p2 repository

How it works

Which classes are considered tests is based on whether the source folder is marked as test source folder. This can be done in the Project properties > Java Build Path. By default, Maven projects have this configured for their src/test/java source folder.

Contains test sources


Released under the EPL 2.0

You can’t perform that action at this time.