mirror of
https://github.com/ivuorinen/shellspec-zed.git
synced 2026-01-26 03:04:11 +00:00
feat: plugin code, updates
This commit is contained in:
29
languages/shellspec/runnables.scm
Normal file
29
languages/shellspec/runnables.scm
Normal file
@@ -0,0 +1,29 @@
|
||||
; Individual test execution
|
||||
(simple_command
|
||||
(command_name) @_name
|
||||
(#match? @_name "^(It|Specify|Example)$")
|
||||
(word) @run) @shellspec-test
|
||||
|
||||
; Test suite execution
|
||||
(simple_command
|
||||
(command_name) @_name
|
||||
(#match? @_name "^(Describe|Context|ExampleGroup)$")
|
||||
(word) @run) @shellspec-suite
|
||||
|
||||
; Focused test execution
|
||||
(simple_command
|
||||
(command_name) @_name
|
||||
(#match? @_name "^f(It|Specify|Example)$")
|
||||
(word) @run) @shellspec-focused-test
|
||||
|
||||
; Focused suite execution
|
||||
(simple_command
|
||||
(command_name) @_name
|
||||
(#match? @_name "^f(Describe|Context|ExampleGroup)$")
|
||||
(word) @run) @shellspec-focused-suite
|
||||
|
||||
; Pending test markers
|
||||
(simple_command
|
||||
(command_name) @_name
|
||||
(#match? @_name "^(Pending|Todo)$")
|
||||
(word) @run) @shellspec-pending
|
||||
Reference in New Issue
Block a user