nixpkgs/home/programs/neovim/configuration/ftdetect/folder_reuter.vim
Daniel Siepmann 9c435e9e51
Adjust test execution for project
Colors is already added, no need to specify it a 2nd time.
Also it recently became more helpful to not stop tests on first error.
The original config is kept for faster switch.
2023-04-26 09:24:34 +02:00

29 lines
1,013 B
VimL

augroup reuterFolder
autocmd!
autocmd BufEnter **/microservices/cms/**/*.js :setlocal tabstop=2 shiftwidth=2
autocmd BufEnter **/reuter/**/Unit/** execute "call ReuterSetupPhpUnitUnit()"
autocmd BufEnter **/reuter/**/Functional/** execute "call ReuterSetupPhpUnitFunctional()"
autocmd BufEnter **/reuter/**/.git/COMMIT_EDITMSG let b:ale_gitcommit_gitlint_options = '-c general.contrib=contrib-title-conventional-commits'
augroup END
" As long as we use older phpunit which does not provider proper testdox output
function! ReuterSetupPhpUnitUnit()
let g:test#php#phpunit#options = {
\ 'file': '--testdox ',
\ 'nearest': '--testdox',
\}
endfunction
function! ReuterSetupPhpUnitFunctional()
let g:test#php#phpunit#options = {
\ 'file': '--testdox',
\ 'nearest': '--testdox',
\}
" let g:test#php#phpunit#options = {
" \ 'file': '--stop-on-error --stop-on-failure --testdox',
" \ 'nearest': '--testdox',
" \}
endfunction