Do note use paratest in Neovim plugin vim-test
Remove the paratest detection. I consider paratest only for CI and executing a huge set of tests. But I use vim-test only to execute a single test file or single test.
This commit is contained in:
parent
f4b39fe17c
commit
551153f446
|
@ -150,6 +150,19 @@ let
|
|||
};
|
||||
};
|
||||
|
||||
test = pkgs.vimUtils.buildVimPlugin {
|
||||
name = "test";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "vim-test";
|
||||
repo = "vim-test";
|
||||
rev = "16a3b6da1bab42473d42d7e02d89d549d7a5e138";
|
||||
sha256 = "CVSTy/FeBgyzRK8NWDMiIynz7DRlFenruiCOjowYnMI=";
|
||||
};
|
||||
patches = [
|
||||
./neovim/patches/disable_test_paratest.patch
|
||||
];
|
||||
};
|
||||
|
||||
in {
|
||||
enable = true;
|
||||
|
||||
|
@ -269,7 +282,7 @@ in {
|
|||
}
|
||||
|
||||
{
|
||||
plugin = vim-test;
|
||||
plugin = test;
|
||||
config = pkgs.lib.fileContents ./neovim/plugins/test.vim;
|
||||
}
|
||||
|
||||
|
|
13
home/programs/neovim/patches/disable_test_paratest.patch
Normal file
13
home/programs/neovim/patches/disable_test_paratest.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/autoload/test/php/phpunit.vim b/autoload/test/php/phpunit.vim
|
||||
index 066aa3c..beee721 100644
|
||||
--- a/autoload/test/php/phpunit.vim
|
||||
+++ b/autoload/test/php/phpunit.vim
|
||||
@@ -51,8 +51,6 @@ function! test#php#phpunit#executable() abort
|
||||
return g:test#php#phpunit#executable
|
||||
elseif filereadable('./vendor/bin/sail')
|
||||
return './vendor/bin/sail test'
|
||||
- elseif filereadable('./vendor/bin/paratest')
|
||||
- return './vendor/bin/paratest'
|
||||
elseif filereadable('./vendor/bin/phpunit')
|
||||
return './vendor/bin/phpunit'
|
||||
elseif filereadable('./bin/phpunit')
|
Loading…
Reference in a new issue