mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
16 lines
371 B
Lua
16 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
|