Adjust test execution for project
We now have two separate configuration files and configure the test plugin to add them to the calls.
This commit is contained in:
parent
69b62931da
commit
9625065974
|
@ -3,5 +3,20 @@ augroup sacFolder
|
|||
autocmd BufEnter **/sac/**/Configuration/**/*.typoscript :setlocal tabstop=2 shiftwidth=2
|
||||
autocmd BufEnter **/sac/**/*.xlf :setlocal noexpandtab
|
||||
autocmd BufEnter **/sac/**/.git/COMMIT_EDITMSG let b:ale_gitcommit_gitlint_options = '-c T7.regex="\[.*\] \w+-\d+ .*"'
|
||||
autocmd BufEnter **/sac/**/Unit/** execute "call SacSetupPhpUnitUnit()"
|
||||
autocmd BufEnter **/sac/**/Functional/** execute "call SacSetupPhpUnitFunctional()"
|
||||
augroup END
|
||||
|
||||
function! SacSetupPhpUnitUnit()
|
||||
let g:test#php#phpunit#options = {
|
||||
\ 'file': '--configuration phpunit.unit.xml.dist --testdox --colors',
|
||||
\ 'nearest': '--configuration phpunit.unit.xml.dist --testdox --colors',
|
||||
\}
|
||||
endfunction
|
||||
|
||||
function! SacSetupPhpUnitFunctional()
|
||||
let g:test#php#phpunit#options = {
|
||||
\ 'file': '--configuration phpunit.functional.xml.dist --testdox --colors',
|
||||
\ 'nearest': '--configuration phpunit.functional.xml.dist --testdox --colors',
|
||||
\}
|
||||
endfunction
|
||||
|
|
Loading…
Reference in a new issue