Summary
Add test coverage for core plugin logic. The codebase currently has zero tests.
Motivation
As the plugin grows, regressions become likely. Tests for the foundational utilities and scanners provide a safety net and enable confident refactoring.
Acceptance Criteria
Implementation Notes
- Use IntelliJ Platform test framework (
BasePlatformTestCase or LightPlatformCodeInsightTestCase)
- Place tests in
src/test/kotlin/ mirroring the main source structure
- For PSI-dependent tests, use test fixtures with sample
nadle.config.ts files
- Pure logic tests (file util, scanner) can use plain JUnit
Summary
Add test coverage for core plugin logic. The codebase currently has zero tests.
Motivation
As the plugin grows, regressions become likely. Tests for the foundational utilities and scanners provide a safety net and enable confident refactoring.
Acceptance Criteria
NadleFileUtiltests: config file pattern matching, task name extraction, regex edge casesNadleTaskScannertests: single file scanning, monorepo prefix generation, skip-directory logicNodeJsResolvertests: fallback chain behavior, path resolution orderNadleTaskGotoDeclarationHandlertests: PSI navigation fordependsOnreferencesImplementation Notes
BasePlatformTestCaseorLightPlatformCodeInsightTestCase)src/test/kotlin/mirroring the main source structurenadle.config.tsfiles