pengovbr / mod-sei-pen

Módulo de Integração ao Tramita.GOV.BR
30 stars 23 forks source link

Refatoração de testes #556

Open mateussbh opened 2 months ago

mateussbh commented 2 months ago

Sua solicitação de melhoria está relacionada a um problema? Por favor descreva. Hoje muitos testes estão demorando demasiado tempo para concluírem e estão muito verbosos, prejudicando a execução tempestiva do teste automatizado completo e piorando sua eficiência. Alguns chegam a demorar 5 a 10 minutos somente para chegar no ponto que efetivamente ocorreria o teste da funcionalidade em questão.


Descreva a solução que você gostaria Faz-se necessária a refatoração dos testes funcionais, de modo que esses passem a usar classes de fixtures e DTOs, e para que o teste gaste tempo prioritariamente testando o que está proposto no escopo, e deixando a cargo das Fixtures a inclusão de dados e a montagem do cenário que antecede ao teste em si da funcionalidade, objetivando testes mais limpos e fáceis de entender.

Para esta issue, foram selecionados os seguintes testes a serem refatorados, são eles:

Favor anexar evidência com a execução do teste com sucesso.

Descreva alternativas que você considerou N/A


marvdias commented 1 month ago
amelquia commented 1 month ago

12/08/24 Planejamento da Sprint 48 Issue em validação técnica transferida para a sprint 48.

amelquia commented 3 weeks ago

02/09/24 Issue transferida para a sprint49, aguardando a Revisão de Código.

Mauro1706 commented 2 weeks ago

Testes realizados na release3.7.0 e não apresentou nenhum erro.

NinetiesPaul commented 2 weeks ago

Revisão de código finalizada, o código não apresentou necessidades de melhoria.

sergioadao commented 2 weeks ago

Boa tarde @amelquia , @marvdias e @mateussbh ...testes realizados ......funcionaram ok,

===========================================================

  1. teste=TramiteProcessoRestritoHipotesePadrao

toor@tesla:~/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen$ make teste=TramiteProcessoRestritoHipotesePadraoTest test-functional docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env up -d WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Running 11/11 ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-php-test-unit-1 Started 0.7s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s ✔ Container funcional-php-test-functional-1 Started 0.6s docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env run -w /tests php-test-functional bash -c './composer.phar install' WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Creating 9/0 ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Nothing to install, update or remove Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. Package zendframework/zend-mime is abandoned, you should avoid using it. Use laminas/laminas-mime instead. Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead. Generating autoload files 27 packages you are using are looking for funding. Use the composer fund command to find out more! docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env run --rm php-test-functional /tests/vendor/bin/phpunit -c /tests/phpunit.xml /tests/tests/TramiteProcessoRestritoHipotesePadraoTest.php ; WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-1f5bdbc61b06 funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Creating 9/0 ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( PHPUnit 8.5.38 by Sebastian Bergmann and contributors.

Runtime: PHP 7.3.33 with Xdebug 3.0.4 Configuration: /tests/phpunit.xml

. .. 3 / 3 (100%)

Time: 5.71 minutes, Memory: 20.00 MB

OK (3 tests, 43 assertions)

==========================================================================================

  1. teste=TramiteProcessoRestritoTest

toor@tesla:~/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen$ make teste=TramiteProcessoRestritoTest test-functional docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env up -d WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-1f5bdbc61b06 funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Running 11/11 ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-php-test-unit-1 Started 1.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s ✔ Container funcional-php-test-functional-1 Started 1.0s docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env run -w /tests php-test-functional bash -c './composer.phar install' WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-1f5bdbc61b06 funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Creating 9/0 ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Nothing to install, update or remove Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. Package zendframework/zend-mime is abandoned, you should avoid using it. Use laminas/laminas-mime instead. Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead. Generating autoload files 27 packages you are using are looking for funding. Use the composer fund command to find out more! docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env run --rm php-test-functional /tests/vendor/bin/phpunit -c /tests/phpunit.xml /tests/tests/TramiteProcessoRestritoTest.php ; WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-21b3ea2f3dee funcional-php-test-functional-run-1f5bdbc61b06 funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Creating 9/0 ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( PHPUnit 8.5.38 by Sebastian Bergmann and contributors.

Runtime: PHP 7.3.33 with Xdebug 3.0.4 Configuration: /tests/phpunit.xml

. .. 3 / 3 (100%)

Time: 4.96 minutes, Memory: 18.00 MB

OK (3 tests, 40 assertions)

=========================================================================================

  1. teste=TramiteProcessosComDevolucaoAmbosAnexadosTest

toor@tesla:~/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen$ make teste=TramiteProcessosComDevolucaoAmbosAnexadosTest test-functional docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env up -d WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-4463ef0a1cb5 funcional-php-test-functional-run-ce0f42381ea5 funcional-php-test-functional-run-6a32a3df39f1 funcional-php-test-functional-run-2033dc8755dc funcional-php-test-functional-run-37a3ceb2ec37 funcional-php-test-functional-run-93a9772e5d3f funcional-php-test-functional-run-a14e7d2788e7 funcional-php-test-functional-run-21b3ea2f3dee funcional-php-test-functional-run-1f5bdbc61b06 funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Running 11/11 ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-php-test-unit-1 Started 0.7s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s ✔ Container funcional-php-test-functional-1 Started 0.7s docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env run -w /tests php-test-functional bash -c './composer.phar install' WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-4463ef0a1cb5 funcional-php-test-functional-run-ce0f42381ea5 funcional-php-test-functional-run-6a32a3df39f1 funcional-php-test-functional-run-2033dc8755dc funcional-php-test-functional-run-37a3ceb2ec37 funcional-php-test-functional-run-93a9772e5d3f funcional-php-test-functional-run-a14e7d2788e7 funcional-php-test-functional-run-21b3ea2f3dee funcional-php-test-functional-run-1f5bdbc61b06 funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Creating 9/0 ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Nothing to install, update or remove Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. Package zendframework/zend-mime is abandoned, you should avoid using it. Use laminas/laminas-mime instead. Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead. Generating autoload files 27 packages you are using are looking for funding. Use the composer fund command to find out more! docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env run --rm php-test-functional /tests/vendor/bin/phpunit -c /tests/phpunit.xml /tests/tests/TramiteProcessosComDevolucaoAmbosAnexadosTest.php ; WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-fe225674f13e funcional-php-test-functional-run-4463ef0a1cb5 funcional-php-test-functional-run-ce0f42381ea5 funcional-php-test-functional-run-6a32a3df39f1 funcional-php-test-functional-run-2033dc8755dc funcional-php-test-functional-run-37a3ceb2ec37 funcional-php-test-functional-run-93a9772e5d3f funcional-php-test-functional-run-a14e7d2788e7 funcional-php-test-functional-run-21b3ea2f3dee funcional-php-test-functional-run-1f5bdbc61b06 funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Creating 9/0 ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( PHPUnit 8.5.38 by Sebastian Bergmann and contributors.

Runtime: PHP 7.3.33 with Xdebug 3.0.4 Configuration: /tests/phpunit.xml

. .... 5 / 5 (100%)

Time: 14.12 minutes, Memory: 24.00 MB

OK (5 tests, 153 assertions)

=========================================================================================

  1. teste= TramiteProcessosComDevolucoesEAnexacoesTest

toor@tesla:~/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen$ make teste=TramiteProcessosComDevolucoesEAnexacoesTest test-functional docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env up -d WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-37a3ceb2ec37 funcional-php-test-functional-run-93a9772e5d3f funcional-php-test-functional-run-a14e7d2788e7 funcional-php-test-functional-run-21b3ea2f3dee funcional-php-test-functional-run-1f5bdbc61b06 funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Running 11/11 ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-php-test-unit-1 Started 0.7s ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s ✔ Container funcional-php-test-functional-1 Started 0.8s docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env run -w /tests php-test-functional bash -c './composer.phar install' WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-37a3ceb2ec37 funcional-php-test-functional-run-93a9772e5d3f funcional-php-test-functional-run-a14e7d2788e7 funcional-php-test-functional-run-21b3ea2f3dee funcional-php-test-functional-run-1f5bdbc61b06 funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Creating 9/0 ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Nothing to install, update or remove Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. Package zendframework/zend-mime is abandoned, you should avoid using it. Use laminas/laminas-mime instead. Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead. Generating autoload files 27 packages you are using are looking for funding. Use the composer fund command to find out more! docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env run --rm php-test-functional /tests/vendor/bin/phpunit -c /tests/phpunit.xml /tests/tests/TramiteProcessosComDevolucoesEAnexacoesTest.php ; WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-2033dc8755dc funcional-php-test-functional-run-37a3ceb2ec37 funcional-php-test-functional-run-93a9772e5d3f funcional-php-test-functional-run-a14e7d2788e7 funcional-php-test-functional-run-21b3ea2f3dee funcional-php-test-functional-run-1f5bdbc61b06 funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Creating 9/0 ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( PHPUnit 8.5.38 by Sebastian Bergmann and contributors.

Runtime: PHP 7.3.33 with Xdebug 3.0.4 Configuration: /tests/phpunit.xml

. ......... 10 / 10 (100%)

Time: 23.41 minutes, Memory: 28.00 MB

OK (10 tests, 223 assertions)

=======================================================================================

5. teste=TramiteProcessoTamanhoAcimaLimiteDestinoTest OBS: Para este teste é necessário configurar as unidades na aplicação.

toor@tesla:~/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen$ make teste=TramiteProcessoTamanhoAcimaLimiteDestinoTest test-functional docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env up -d WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-48bde6db7bb4 funcional-php-test-functional-run-38f5a7e10bf5 funcional-php-test-functional-run-98aac58ac195 funcional-php-test-functional-run-deca2c412c38 funcional-php-test-functional-run-346e3df4a0fc funcional-php-test-functional-run-5e48dd576adf funcional-php-test-functional-run-5cbb41011e8c funcional-php-test-functional-run-7bb28d95d877 funcional-php-test-functional-run-fe225674f13e funcional-php-test-functional-run-4463ef0a1cb5 funcional-php-test-functional-run-ce0f42381ea5 funcional-php-test-functional-run-6a32a3df39f1 funcional-php-test-functional-run-2033dc8755dc funcional-php-test-functional-run-37a3ceb2ec37 funcional-php-test-functional-run-93a9772e5d3f funcional-php-test-functional-run-a14e7d2788e7 funcional-php-test-functional-run-21b3ea2f3dee funcional-php-test-functional-run-1f5bdbc61b06 funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Running 11/11 ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-php-test-unit-1 Started 0.8s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s ✔ Container funcional-php-test-functional-1 Started 0.9s docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env run -w /tests php-test-functional bash -c './composer.phar install' WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-48bde6db7bb4 funcional-php-test-functional-run-38f5a7e10bf5 funcional-php-test-functional-run-98aac58ac195 funcional-php-test-functional-run-deca2c412c38 funcional-php-test-functional-run-346e3df4a0fc funcional-php-test-functional-run-5e48dd576adf funcional-php-test-functional-run-5cbb41011e8c funcional-php-test-functional-run-7bb28d95d877 funcional-php-test-functional-run-fe225674f13e funcional-php-test-functional-run-4463ef0a1cb5 funcional-php-test-functional-run-ce0f42381ea5 funcional-php-test-functional-run-6a32a3df39f1 funcional-php-test-functional-run-2033dc8755dc funcional-php-test-functional-run-37a3ceb2ec37 funcional-php-test-functional-run-93a9772e5d3f funcional-php-test-functional-run-a14e7d2788e7 funcional-php-test-functional-run-21b3ea2f3dee funcional-php-test-functional-run-1f5bdbc61b06 funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Creating 9/0 ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Nothing to install, update or remove Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. Package zendframework/zend-mime is abandoned, you should avoid using it. Use laminas/laminas-mime instead. Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead. Generating autoload files 27 packages you are using are looking for funding. Use the composer fund command to find out more! docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env run --rm php-test-functional /tests/vendor/bin/phpunit -c /tests/phpunit.xml /tests/tests/TramiteProcessoTamanhoAcimaLimiteDestinoTest.php ; WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-07a54b56293c funcional-php-test-functional-run-48bde6db7bb4 funcional-php-test-functional-run-38f5a7e10bf5 funcional-php-test-functional-run-98aac58ac195 funcional-php-test-functional-run-deca2c412c38 funcional-php-test-functional-run-346e3df4a0fc funcional-php-test-functional-run-5e48dd576adf funcional-php-test-functional-run-5cbb41011e8c funcional-php-test-functional-run-7bb28d95d877 funcional-php-test-functional-run-fe225674f13e funcional-php-test-functional-run-4463ef0a1cb5 funcional-php-test-functional-run-ce0f42381ea5 funcional-php-test-functional-run-6a32a3df39f1 funcional-php-test-functional-run-2033dc8755dc funcional-php-test-functional-run-37a3ceb2ec37 funcional-php-test-functional-run-93a9772e5d3f funcional-php-test-functional-run-a14e7d2788e7 funcional-php-test-functional-run-21b3ea2f3dee funcional-php-test-functional-run-1f5bdbc61b06 funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Creating 9/0 ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( PHPUnit 8.5.38 by Sebastian Bergmann and contributors.

Runtime: PHP 7.3.33 with Xdebug 3.0.4 Configuration: /tests/phpunit.xml

. .. 3 / 3 (100%)

Time: 4.7 minutes, Memory: 18.00 MB

========================================================================================

7. teste=TramiteProcessoUnidadeSemHierarquiaPaiTest

toor@tesla:~/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen$ make teste=TramiteProcessoUnidadeSemHierarquiaPaiTest test-functional docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env up -d WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-5e48dd576adf funcional-php-test-functional-run-5cbb41011e8c funcional-php-test-functional-run-7bb28d95d877 funcional-php-test-functional-run-fe225674f13e funcional-php-test-functional-run-4463ef0a1cb5 funcional-php-test-functional-run-ce0f42381ea5 funcional-php-test-functional-run-6a32a3df39f1 funcional-php-test-functional-run-2033dc8755dc funcional-php-test-functional-run-37a3ceb2ec37 funcional-php-test-functional-run-93a9772e5d3f funcional-php-test-functional-run-a14e7d2788e7 funcional-php-test-functional-run-21b3ea2f3dee funcional-php-test-functional-run-1f5bdbc61b06 funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Running 11/11 ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-php-test-unit-1 Started 1.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s ✔ Container funcional-php-test-functional-1 Started 0.9s docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env run -w /tests php-test-functional bash -c './composer.phar install' WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-5e48dd576adf funcional-php-test-functional-run-5cbb41011e8c funcional-php-test-functional-run-7bb28d95d877 funcional-php-test-functional-run-fe225674f13e funcional-php-test-functional-run-4463ef0a1cb5 funcional-php-test-functional-run-ce0f42381ea5 funcional-php-test-functional-run-6a32a3df39f1 funcional-php-test-functional-run-2033dc8755dc funcional-php-test-functional-run-37a3ceb2ec37 funcional-php-test-functional-run-93a9772e5d3f funcional-php-test-functional-run-a14e7d2788e7 funcional-php-test-functional-run-21b3ea2f3dee funcional-php-test-functional-run-1f5bdbc61b06 funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Creating 9/0 ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Nothing to install, update or remove Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. Package zendframework/zend-mime is abandoned, you should avoid using it. Use laminas/laminas-mime instead. Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead. Generating autoload files 27 packages you are using are looking for funding. Use the composer fund command to find out more! docker compose -f tests_super/funcional/docker-compose.yml --env-file tests_super/funcional/.env run --rm php-test-functional /tests/vendor/bin/phpunit -c /tests/phpunit.xml /tests/tests/TramiteProcessoUnidadeSemHierarquiaPaiTest.php ; WARN[0000] /home/toor/Documentos/ministerio_economia/aplicacao_sei/sei_versoes/sei-trad/src/sei/web/modulos/mod-sei-pen/tests_super/funcional/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] Found orphan containers ([funcional-php-test-functional-run-346e3df4a0fc funcional-php-test-functional-run-5e48dd576adf funcional-php-test-functional-run-5cbb41011e8c funcional-php-test-functional-run-7bb28d95d877 funcional-php-test-functional-run-fe225674f13e funcional-php-test-functional-run-4463ef0a1cb5 funcional-php-test-functional-run-ce0f42381ea5 funcional-php-test-functional-run-6a32a3df39f1 funcional-php-test-functional-run-2033dc8755dc funcional-php-test-functional-run-37a3ceb2ec37 funcional-php-test-functional-run-93a9772e5d3f funcional-php-test-functional-run-a14e7d2788e7 funcional-php-test-functional-run-21b3ea2f3dee funcional-php-test-functional-run-1f5bdbc61b06 funcional-php-test-functional-run-c4f0b61541db funcional-php-test-functional-run-8f5e7d6a5ef2 funcional-php-test-functional-run-e13feb978c1e funcional-php-test-functional-run-d696bf796a3a funcional-php-test-functional-run-36d71d1f245b]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Creating 9/0 ✔ Container funcional-org2-memcached-1 Running 0.0s ✔ Container funcional-org1-memcached-1 Running 0.0s ✔ Container funcional-org1-database-1 Running 0.0s ✔ Container funcional-org2-database-1 Running 0.0s ✔ Container funcional-smtp-1 Running 0.0s ✔ Container funcional-org1-http-1 Running 0.0s ✔ Container funcional-org2-http-1 Running 0.0s ✔ Container funcional-proxy-1 Running 0.0s ✔ Container funcional-selenium-1 Running 0.0s Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( PHPUnit 8.5.38 by Sebastian Bergmann and contributors.

Runtime: PHP 7.3.33 with Xdebug 3.0.4 Configuration: /tests/phpunit.xml

. 1 / 1 (100%)

Time: 41.15 seconds, Memory: 18.00 MB

OK (1 test, 3 assertions)

========================================================================================