Apply TYPO3 testing setup only to TYPO3 itself
Also add setup for functional tests
This commit is contained in:
parent
7c96e9066d
commit
0a0dcf9132
|
@ -1,6 +1,7 @@
|
||||||
augroup typo3Folder
|
augroup typo3Folder
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd BufEnter **/stuff/typo3/**/Unit/** execute "call Typo3SetupPhpUnitUnit()"
|
autocmd BufEnter **/stuff/typo3/core/**/Unit/** execute "call Typo3SetupPhpUnitUnit()"
|
||||||
|
autocmd BufEnter **/stuff/typo3/core/**/Functional/** execute "call Typo3SetupPhpUnitFunctional()"
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
function! Typo3SetupPhpUnitUnit()
|
function! Typo3SetupPhpUnitUnit()
|
||||||
|
@ -9,3 +10,10 @@ function! Typo3SetupPhpUnitUnit()
|
||||||
\ 'nearest': '--configuration Build/phpunit/UnitTests.xml',
|
\ 'nearest': '--configuration Build/phpunit/UnitTests.xml',
|
||||||
\}
|
\}
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! Typo3SetupPhpUnitFunctional()
|
||||||
|
let g:test#php#phpunit#options = {
|
||||||
|
\ 'file': '--configuration Build/phpunit/FunctionalTests.xml',
|
||||||
|
\ 'nearest': '--configuration Build/phpunit/FunctionalTests.xml',
|
||||||
|
\}
|
||||||
|
endfunction
|
||||||
|
|
Loading…
Reference in a new issue