I want to execute different dump file for different codeception tests. Right now Db dump file is being executed from shell_exec
command in _before
method of AcceptanceHelper
, that executes before each and every acceptance test. Something like suggested here. There are alot of tests in the app. So, the flow is as follows
- tests/acceptance/application/<contains alot of tests related to application>
- tests/acceptance/location/<contains alot of tests related to location>
Both test directories /application/
and /location/
uses same AcceptanceHelper
. So, what i want is a different executable dump file for all of the tests inside /application/
directory than that of /location/
tests.
Think of something like Get current running test name. Let's say application_dump.sql
for all tests inside /application/
directory and location_dump.sql
for all tests inside /location/
directory.
P.S: Using a different suite for application and location is ideally not what i am looking for.
Aucun commentaire:
Enregistrer un commentaire