Skip to content

bmuskalla/callhierarchy-filter-tests

Repository files navigation

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.

Usage

Demo

Keyboard

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

⌘ Command + 3 + Filter Test Code

Installation

Use the following p2 repository

https://dl.bintray.com/bmuskalla/eclipse-toggletestfilter/

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

License

Released under the EPL 2.0

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages