Skip to content

Commit

Permalink
Revert "test: reorganização de testes automatizados para super"
Browse files Browse the repository at this point in the history
This reverts commit 4d887a8.
  • Loading branch information
guilhermeadc committed Apr 29, 2023
1 parent ea8e21d commit 5012d1b
Show file tree
Hide file tree
Showing 291 changed files with 1,886 additions and 1,884 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ vendor/
src/config/ConfiguracaoModPEN.php
src/config/supervisor.ini
**/.tmp/
*.pem

.vscode

.env
*.pem
*.cache
*.lock
*.log
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ SEI_BIN_DIR = dist/sei/bin/mod-pen
SEI_MODULO_DIR = dist/sei/web/modulos/pen
SIP_SCRIPTS_DIR = dist/sip/scripts/mod-pen
PEN_MODULO_COMPACTADO = mod-sei-pen-$(VERSAO_MODULO).zip
PEN_TEST_FUNC = tests/tests_$(sistema)/funcional
PEN_TEST_UNIT = tests/tests_$(sistema)/unitario
PEN_TEST_FUNC = tests_$(sistema)/funcional
PEN_TEST_UNIT = tests_$(sistema)/unitario
PARALLEL_TEST_NODES = 5

-include $(PEN_TEST_FUNC)/.env
Expand Down Expand Up @@ -173,15 +173,15 @@ test-functional: .env $(FILE_VENDOR_FUNCIONAL)
$(CMD_COMPOSE_FUNC) run --rm php-test-functional /tests/vendor/bin/phpunit -c /tests/phpunit.xml /tests/tests/$(addsuffix .php,$(teste))


test-functional-parallel: $(FILE_VENDOR_FUNCIONAL)
test-functional-parallel: .env $(FILE_VENDOR_FUNCIONAL)
$(CMD_COMPOSE_FUNC) run --rm php-test-functional /tests/vendor/bin/paratest -c /tests/phpunit.xml --testsuite $(TEST_SUIT) -p $(PARALLEL_TEST_NODES) $(TEST_GROUP_EXCLUIR) $(TEST_GROUP_INCLUIR)


test-parallel-otimizado:
make -j2 test-functional-parallel tramitar-pendencias-silent


test-unit: .env $(FILE_VENDOR_UNITARIO)
test-unit: $(FILE_VENDOR_UNITARIO)
$(CMD_DOCKER_COMPOSE) -f $(PEN_TEST_FUNC)/docker-compose.yml run --rm -w /tests php-test-unit bash -c 'vendor/bin/phpunit rn/ProcessoEletronicoRNTest.php'

test: test-unit test-functional
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ services:

proxy:
image: diouxx/apache-proxy
container_name: proxy
ports:
- "80:80"
volumes:
Expand All @@ -31,7 +30,6 @@ services:

selenium:
image: selenium/standalone-chrome-debug
container_name: selenium
links:
- proxy:org1-http
- proxy:org2-http
Expand All @@ -45,7 +43,6 @@ services:

php-test-functional:
image: processoeletronico/vagrant_sei4_httpd
container_name: php-test-functional
depends_on:
- org1-database
- org2-database
Expand Down Expand Up @@ -82,13 +79,11 @@ services:

org1-database:
image: ${ORG1_DATABASE_IMAGE}:7.2
container_name: org1-${ORG1_DATABASE_NAME}
ports:
- "${ORG1_DATABASE_HOST_PORT}:${ORG1_DATABASE_GUEST_PORT}"

org1-http:
image: guilhermeadc/sei3_httpd-2.4:7.2
container_name: org1-http
volumes:
- ${SEI_PATH}/sei:/opt/sei
- ${SEI_PATH}/sip:/opt/sip
Expand Down Expand Up @@ -119,13 +114,11 @@ services:

org2-database:
image: ${ORG2_DATABASE_IMAGE}:7.2
container_name: org2-${ORG2_DATABASE_NAME}
ports:
- "${ORG2_DATABASE_HOST_PORT}:${ORG2_DATABASE_GUEST_PORT}"

org2-http:
image: guilhermeadc/sei3_httpd-2.4:7.2
container_name: org2-http
volumes:
- ${SEI_PATH}/sei:/opt/sei
- ${SEI_PATH}/sip:/opt/sip
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##### Diretório em que está localizada a instalação do SEI #####
SEI_PATH=../../../../../../../
SEI_PATH=../../../../../../

SEI_DATABASE_NAME=sei
SEI_DATABASE_USER=sei_user
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##### Diretório em que está localizada a instalação do SEI #####
SEI_PATH=../../../../../../../
SEI_PATH=../../../../../../

SEI_DATABASE_NAME=sei
SEI_DATABASE_USER=sei
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##### Diretório em que está localizada a instalação do SEI #####
SEI_PATH=../../../../../../../
SEI_PATH=../../../../../../

SEI_DATABASE_NAME=sei
SEI_DATABASE_USER=sei_user
Expand Down
File renamed without changes.
Loading

0 comments on commit 5012d1b

Please sign in to comment.