docs: Add example of Ruby plain minitest task (#27607)
Via https://github.com/zed-industries/zed/issues/12579#issuecomment-2143972765 Release Notes: - N/A
This commit is contained in:
parent
0a58e54477
commit
500964a6fa
1 changed files with 14 additions and 1 deletions
|
@ -299,7 +299,20 @@ To run tests in your Ruby project, you can set up custom tasks in your local `.z
|
|||
]
|
||||
```
|
||||
|
||||
Note: Plain minitest does not support running tests by line number.
|
||||
### Minitest
|
||||
|
||||
Plain minitest does not support running tests by line number, only by name, so we need to use `$ZED_SYMBOL` instead:
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"label": "-Itest $ZED_RELATIVE_FILE -n /$ZED_SYMBOL/",
|
||||
"command": "bundle exec ruby",
|
||||
"args": ["-Itest", "$ZED_RELATIVE_FILE", "-n /$ZED_SYMBOL/"],
|
||||
"tags": ["ruby-test"]
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
### RSpec
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue