Remove PHPUnit testdox output format

As this will hide errors which is not helpful during development.
This commit is contained in:
Daniel Siepmann 2023-11-29 10:48:31 +01:00
parent a271005b98
commit c07db5167f
Signed by: Daniel Siepmann
GPG Key ID: 33D6629915560EF4
4 changed files with 5 additions and 24 deletions

View File

@ -3,26 +3,12 @@ augroup reuterFolder
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',
" \ 'file': '--stop-on-error --stop-on-failure',
" \}
endfunction

View File

@ -9,14 +9,14 @@ augroup END
function! SacSetupPhpUnitUnit()
let g:test#php#phpunit#options = {
\ 'file': '--configuration phpunit.unit.xml.dist --testdox',
\ 'nearest': '--configuration phpunit.unit.xml.dist --testdox',
\ 'file': '--configuration phpunit.unit.xml.dist',
\ 'nearest': '--configuration phpunit.unit.xml.dist',
\}
endfunction
function! SacSetupPhpUnitFunctional()
let g:test#php#phpunit#options = {
\ 'file': '--configuration phpunit.functional.xml.dist --testdox',
\ 'nearest': '--configuration phpunit.functional.xml.dist --testdox',
\ 'file': '--configuration phpunit.functional.xml.dist',
\ 'nearest': '--configuration phpunit.functional.xml.dist',
\}
endfunction

View File

@ -13,11 +13,6 @@ let g:test#php#codeception#options = {
\ 'file': '--env production --debug',
\}
let g:test#php#phpunit#options = {
\ 'nearest': '--testdox',
\ 'file': '--testdox',
\}
if !exists('g:test#php#codeception#suite')
let g:test#php#codeception#suite = 'acceptance'
endif

Binary file not shown.