runnables.scm
1; Functions with names ending in `_test`.
2; This matches the standalone test style used by Startest and Gleeunit.
3(
4 (
5 (function name: (_) @run
6 (#match? @run ".*_test$"))
7 ) @gleam-test
8 (#set! tag gleam-test)
9)
10
11
12; `describe` API for Startest.
13(
14 (function_call
15 function: (_) @name
16 (#any-of? @name "describe" "it")
17 arguments: (arguments
18 .
19 (argument
20 value: (string (quoted_content) @run)
21 )
22 )
23 )
24 (#set! tag gleam-test)
25) @gleam-test