nixpkgs/home/programs/neovim/patches/test_extend_codeception_detection.patch
Daniel Siepmann 47eac8a8ad
Allow neovim test plugin to detect codeception test
It missed the dist file during detection.
I already opened an PR upstream: https://github.com/vim-test/vim-test/pull/654
2022-05-18 19:39:35 +02:00

15 lines
537 B
Diff

Open PR: https://github.com/vim-test/vim-test/pull/654
diff --git a/autoload/test/php/codeception.vim b/autoload/test/php/codeception.vim
index e1fc4ed..d627dd5 100644
--- a/autoload/test/php/codeception.vim
+++ b/autoload/test/php/codeception.vim
@@ -5,7 +5,7 @@ endif
function! test#php#codeception#test_file(file) abort
if a:file =~# g:test#php#codeception#file_pattern
- return filereadable('./codeception.yml')
+ return filereadable('./codeception.yml') || filereadable('./codeception.dist.yml')
endif
endfunction