mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-21 20:11:06 +00:00
feat(lang): add neotest config for PHP tests (#5958)
## Description Similar to some other languages (this closely follows the Go lang extra), this adds neotest runners for the major PHP test runners: PHPUnit and Pest. Both work together, trying to use Pest if available and falling back to PHPUnit which is a decent approach for the PHP ecosystem. I read CONTRIBUTING.md which differs from the way the Go lang extra has implemented a neotest adapters and opted to follow that instead. Ie. adapters have been added as dependencies instead of a separate spec with `lazy=true`. Let me know if you want that changed. ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines.
This commit is contained in:
parent
90f84e7e75
commit
9b077c7a8e
1 changed files with 17 additions and 0 deletions
|
|
@ -83,4 +83,21 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"nvim-neotest/neotest",
|
||||||
|
optional = true,
|
||||||
|
dependencies = {
|
||||||
|
"V13Axel/neotest-pest",
|
||||||
|
"olimorris/neotest-phpunit",
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
adapters = {
|
||||||
|
"neotest-pest",
|
||||||
|
["neotest-phpunit"] = {
|
||||||
|
root_ignore_files = { "tests/Pest.php" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue