Skip to content

Commit

Permalink
Adição de suporte à testes funcionais paralelos
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermeadc committed Nov 10, 2020
1 parent 52257d5 commit 4ed0110
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: .env help clean build all test-provision test-funcional-paralelo test-provision-destroy bash_org1 bash_org2
.PHONY: .env help clean build all test-enviroment-provision test-enviroment-destroy test-enviroment-up test-enviroment-down test test-functional test-functional-parallel test-unit bash_org1 bash_org2

include tests/funcional/.env

Expand Down Expand Up @@ -92,14 +92,17 @@ test-enviroment-down:


test-functional:
#tests/funcional/vendor/phpunit/phpunit/phpunit -c tests/funcional/phpunit.xml --testsuite funcional
tests/funcional/vendor/phpunit/phpunit/phpunit -c tests/funcional/phpunit.xml --stop-on-failure --testsuite funcional

$(PEN_TEST_FUNC)/vendor/phpunit/phpunit/phpunit -c $(PEN_TEST_FUNC)/phpunit.xml --stop-on-failure --testsuite funcional

test-functional-parallel:
$(PEN_TEST_FUNC)/vendor/bin/paratest -c $(PEN_TEST_FUNC)/phpunit.xml --bootstrap $(PEN_TEST_FUNC)/bootstrap.php -p 3 -f


test-unit:
#tests/unitario/vendor/phpunit/phpunit/phpunit -c $(PEN_TEST_UNIT)/phpunit.xml --stop-on-failure $(PEN_TEST_UNIT)/rn/ProcessoEletronicoRNTest.php
php -c php.ini $(PEN_TEST_UNIT)/vendor/phpunit/phpunit/phpunit -c $(PEN_TEST_UNIT)/phpunit.xml $(PEN_TEST_UNIT)/rn/ProcessoEletronicoRNTest.php

test: test-unit teste-functional


bash_org1:
docker-compose -f $(PEN_TEST_FUNC)/docker-compose.yml --env-file $(PEN_TEST_FUNC)/.env exec org1-http bash
Expand Down
3 changes: 2 additions & 1 deletion tests/funcional/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"phpunit/php-code-coverage": "*",
"phpunit/phpunit-selenium": "*",
"besimple/soap": "*",
"brandonwamboldt/utilphp": "1.1.*"
"brandonwamboldt/utilphp": "1.1.*",
"brianium/paratest": "4.*"
}
}
2 changes: 1 addition & 1 deletion tests/funcional/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ services:
- "5900:5900"
volumes:
- /dev/shm:/dev/shm
- ./assets/arquivos/test_files_index.txt:/tmp/test_files_index.txt
- ./assets/arquivos/test_files_index.txt:/test_files_index.txt
- /tmp:/tmp


Expand Down

0 comments on commit 4ed0110

Please sign in to comment.