mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 14:17:02 +00:00
17 lines
371 B
Lua
17 lines
371 B
Lua
|
query = [[(
|
||
|
(attribute_item
|
||
|
(meta_item
|
||
|
(identifier) @test)) @attribute
|
||
|
.
|
||
|
(function_item
|
||
|
name: (identifier) @name) @funciton
|
||
|
)]]
|
||
|
|
||
|
function run_test(name)
|
||
|
local command = 'cargo test -- ' .. name
|
||
|
local openPop = assert(io.popen(command, 'r'))
|
||
|
local output = openPop:read('*all')
|
||
|
openPop:close()
|
||
|
return output
|
||
|
end
|