feat: add path field to TestItem for demand from adapter

This commit is contained in:
kbwo 2024-12-25 23:31:26 +09:00
parent 5b8862fe5d
commit 4df71f69c0

View file

@ -102,6 +102,11 @@ pub struct RunFileTestResult {
pub struct TestItem {
pub id: String,
pub name: String,
/// Although FoundFileTests also has a `path` field, we keep the `path` field in TestItem
/// because sometimes we need to determine where a TestItem is located on its own
/// Example: In Rust tests, determining which file contains a test from IDs like relative::path::tests::id
/// TODO: Remove FoundFileTests.path once we confirm it's no longer needed
pub path: String,
pub start_position: Range,
pub end_position: Range,
}