Commit 7c84df6
authored
Add
Reordered and added `@RUBY_TEST_NAME` capture to test method arguments
and blocks to provide explicit test name references for:
- test method with string argument
- describe/context/it/its/specify methods with arguments
- it/its/specify methods with blocks without arguments
This capture can be references in Zed tasks via
`ZED_CUSTOM_RUBY_TEST_NAME` variable. For example, to run a single
Minitest properly we need to define the following Zed task:
```json
{
"label": "test $ZED_RELATIVE_FILE -n /$ZED_CUSTOM_RUBY_TEST_NAME/",
"command": "bin/rails",
"args": [
"test",
"$ZED_RELATIVE_FILE",
"-n",
"/$ZED_CUSTOM_RUBY_TEST_NAME/"
],
"tags": ["ruby-test"]
}
```@RUBY_TEST_NAME capture for test nodes (#97)1 parent 2bd9e29 commit 7c84df6
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments