mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-23 23:09:42 +00:00
gleam: Add runnable tests (#11476)
This PR adds basic runnable tests for Gleam. Functions with names ending in `_test` will be available for running: https://github.com/zed-industries/zed/assets/1486634/9f3f81e5-a7fa-425c-a5a2-d615062486bb Release Notes: - N/A
This commit is contained in:
parent
843d299d9a
commit
4eca7875ae
2 changed files with 14 additions and 0 deletions
6
extensions/gleam/languages/gleam/runnables.scm
Normal file
6
extensions/gleam/languages/gleam/runnables.scm
Normal file
|
@ -0,0 +1,6 @@
|
|||
; Functions with names ending in `_test`.
|
||||
; This matches the standalone test style used by Startest and Gleeunit.
|
||||
(
|
||||
(function name: (_) @run
|
||||
(#match? @run ".*_test$"))
|
||||
) @gleam-test
|
8
extensions/gleam/languages/gleam/tasks.json
Normal file
8
extensions/gleam/languages/gleam/tasks.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
[
|
||||
{
|
||||
"label": "gleam test $ZED_SYMBOL",
|
||||
"command": "gleam",
|
||||
"args": ["test", "--", "--test-name-filter=$ZED_SYMBOL"],
|
||||
"tags": ["gleam-test"]
|
||||
}
|
||||
]
|
Loading…
Reference in a new issue