mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
gleam: Detect tests using describe
API for Startest (#12221)
This PR updates the Gleam runnables to detect tests using the `describe` API in Startest. This isn't entirely functional yet, as it is still just uses the test function name to run the tests (which Startest doesn't yet support). Release Notes: - N/A
This commit is contained in:
parent
e15b902974
commit
e0cfba43aa
@ -4,3 +4,17 @@
|
||||
(function name: (_) @run
|
||||
(#match? @run ".*_test$"))
|
||||
) @gleam-test
|
||||
|
||||
; `describe` API for Startest.
|
||||
(
|
||||
(function_call
|
||||
function: (_) @name
|
||||
(#any-of? @name "describe" "it")
|
||||
arguments: (arguments
|
||||
.
|
||||
(argument
|
||||
value: (string (quoted_content) @run)
|
||||
)
|
||||
)
|
||||
)
|
||||
) @gleam-test
|
||||
|
Loading…
Reference in New Issue
Block a user