find_tests
Retrieve test classes and methods from a Java project, supporting JUnit 4/5 and TestNG annotations. Optionally filter by name or include 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 |
|---|---|---|---|
| includeDisabled | No | Include disabled/ignored tests (default false) | |
| pattern | No | Filter test classes by name pattern (glob) |