find_tests
Locates test classes and methods in Java projects that use JUnit 4/5 or TestNG annotations. Filters by name pattern and optionally includes disabled tests.
Instructions
Find test classes and methods in the project.
USAGE: find_tests() OUTPUT: List of test classes with their test methods
Supports:
JUnit 4 (@Test, @Before, @After, etc.)
JUnit 5 (@Test, @BeforeEach, @AfterEach, etc.)
TestNG annotations
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No | Filter test classes by name pattern (glob) | |
| includeDisabled | No | Include disabled/ignored tests (default false) |