mirror of
https://github.com/kbwo/testing-language-server.git
synced 2025-08-03 15:18:16 +00:00
feat: add path
field to TestItem
for demand from adapter
This commit is contained in:
parent
5b8862fe5d
commit
4df71f69c0
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue