From test-engineering
Find source files tested by a test file, or find tests for a source file using evidence-based confidence scoring
npx claudepluginhub issacchaos/local-marketplace --plugin test-engineeringThis skill uses the workspace's default tool permissions.
**Version**: 1.0.0
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
Version: 1.0.0 Category: LowLevelTests Discovery
Shared Reference: See llt-common/SKILL.md for response format, data structures, validation rules, and logging instructions. Purpose: Map test files to source files using evidence-based confidence scoring
The llt-find-sources skill maps test files to source files (forward lookup) or source files to test files (reverse lookup) using multiple evidence types with confidence scoring.
| Parameter | Required | Description |
|---|---|---|
test_file | Yes | Path to test file (relative to project root or absolute) |
project_root | Yes | Root directory of the project |
module_dependencies | No | List of module names the test depends on |
min_confidence | No | Minimum confidence level: low (default), medium, high, very high |
| Parameter | Required | Description |
|---|---|---|
source_file | Yes | Path to source file (relative to project root or absolute) |
project_root | Yes | Root directory of the project |
test_root | No | Root directory for test files (defaults to project root) |
min_confidence | No | Minimum confidence level: low (default), medium, high, very high |
Returns standard LLT JSON envelope (see llt-common/SKILL.md). The data field contains:
{
"mode": "forward",
"test_file": "Engine/Source/Runtime/Core/Tests/LruCacheTest.cpp",
"total_count": 2,
"mappings": [
{
"test_file": "Engine/Source/Runtime/Core/Tests/LruCacheTest.cpp",
"source_file": "Engine/Source/Runtime/Core/Public/LruCache.h",
"confidence": "very high",
"evidence": [
{"type": "direct_include", "value": "#include \"LruCache.h\"", "points": 50},
{"type": "naming_convention", "value": "LruCacheTest -> LruCache.h", "points": 30}
]
}
],
"confidence_breakdown": {
"very high": 1, "high": 0, "medium": 1, "low": 0
}
}
| Evidence Type | Points | Description |
|---|---|---|
direct_include | +50 | Test file #includes a source header |
naming_convention | +30 | Test name matches source with test suffix removed |
module_dependency | +20 | Test module depends on runtime module via .Build.cs |
To find source files tested by a given test file, the agent should:
Parse #include directives from the test file:
#include\s+[<"]([^>"]+)[>"] to extract included pathsTestHarness.h, OnlineCatchHelper.h, catch.hpp, catch2/catch.hpp, catch2/catch_all.hpp, catch2/catch_test_macros.hpp, and anything starting with catch2/Public/ directoryPrivate/ directoryPublic/, Private/, Classes/, Source/ under the module rootdirect_include evidence (+50 points)Apply naming convention matching on the test filename:
(.+)_tests$ -> \1 (e.g., foo_tests.cpp -> foo)(.+)_test$ -> \1 (e.g., foo_test.cpp -> foo)(.+)Tests$ -> \1 (e.g., FooTests.cpp -> Foo)(.+)Test$ -> \1 (e.g., FooTest.cpp -> Foo)^Test(.+)$ -> \1 (e.g., TestFoo.cpp -> Foo){name}.h, {name}.cpp, {name}.inlTests/Tests/ is the module rootPublic/, Private/, Classes/, Source/, and the module root itselfnaming_convention evidence (+30 points)Add module dependency evidence (if module_dependencies provided):
module_dependency evidence (+20 points) to ALL existing mappingsCalculate confidence for each mapping by summing all evidence points and applying the confidence level thresholds above.
Filter by minimum confidence if specified.
To find test files that test a given source file, the agent should:
Find all test files by globbing *.cpp and *.cxx recursively under the test root directory.
For each test file, check:
#include directives and check if any include's basename matches the source file's basename. If so, add direct_include evidence (+50 points).{source_stem}Tests? (e.g., LruCacheTest.cpp or LruCacheTests.cpp for LruCache.h)Test{source_stem} (e.g., TestLruCache.cpp for LruCache.h)naming_convention evidence (+30 points).Create mappings only for test files where at least one piece of evidence was found.
| Error | Cause | Status |
|---|---|---|
| Test file not found | test_file path does not exist | error |
| Source file not found | source_file path does not exist | error |
| Invalid project root | project_root does not exist | error |
| No mappings found | No evidence found for given file | success with warning |
#include directives are parsed.Build.cs parsing not integrated