Skip to content

Commit 74d7d27

Browse files
anytikhrysievaDariaHanzenkodubrslkisakova
authored
BAP-19975: Behat tests should not depend on bash scripts
* Added ``behat_test`` environment to run tests that depend on mocks in a separate environment. * Marked all the tests that depend on behat_test environment with the ``@behat-test-env`` tag. * Replaced message queue Behat isolators with the JobStatusSubscriber that checks the jobs table and does not depend on application changes * Added the `--do-not-run-consumer` argument to the bin/behat command to run application tests in the production-like environment where the supervisord or systemd runs the consumer. * Added maintenance mode isolators to toggle the maintenance mode when the database is backed up and restored so the message consumer does not produce errors during these operations. * Updated some behat tests and contexts to work with the new isolators. Co-authored-by: Julia Khrysieva <[email protected]> Co-authored-by: Daria Hanzenko <[email protected]> Co-authored-by: Viacheslav Dubrovskyi <[email protected]> Co-authored-by: Kateryna Isakova <[email protected]>
1 parent a7ba6e8 commit 74d7d27

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

behat.yml.dist

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ default: &default
1010
base_url: 'http://dev-commerce-crm.local/'
1111
FriendsOfBehat\SymfonyExtension:
1212
kernel:
13-
environment: 'prod'
1413
debug: false
1514
class: AppKernel
1615
Oro\Bundle\TestFrameworkBundle\Behat\ServiceContainer\OroTestFrameworkExtension:

config/config_behat_test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
imports:
2+
- { resource: ./../vendor/**/Tests/Behat/parameters.yml }
3+
- { resource: config_prod.yml }

0 commit comments

Comments
 (0)