Add setup to execute tests of TYPO3 testing framework

This commit is contained in:
Daniel Siepmann 2024-02-15 08:29:35 +01:00
parent ad60525629
commit aa3374fba2
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 14 additions and 0 deletions

View file

@ -17,3 +17,17 @@ function! Typo3SetupPhpUnitFunctional()
\ 'nearest': '--configuration Build/phpunit/FunctionalTests.xml',
\}
endfunction
augroup typo3TestingFrameworkFolder
autocmd!
autocmd BufEnter **/stuff/typo3/testing-framework/Tests/Unit/** execute "call Typo3TestingFrameworkSetupPhpUnitUnit()"
augroup END
function! Typo3TestingFrameworkSetupPhpUnitUnit()
let g:test#php#phpunit#options = {
\ 'file': '--configuration Resources/Core/Build/UnitTests.xml',
\ 'nearest': '--configuration Resources/Core/Build/UnitTests.xml',
\}
let g:test#php#phpunit#executable = '.Build/bin/phpunit'
endfunction

Binary file not shown.