fastest
fastest copied to clipboard
Re-enable -b before command
Execute a process before consuming the queue, it executes this command once per process, useful for init schema and load fixtures.
One way to handle this is to use phpunit.xml.dist file and define used bootstrap file there.
@tarlepp do you think that this https://github.com/liuggio/fastest/issues/102 could be tackled with phpunit.xml.dist?
(or at least, if -b is already enabled in fastest, we can close this)
@DonCallisto currently fastest won't fail at all if phpunit.xml.dist bootstrap fails (eg. that has simple die(); on that script). And then fastest won't show any errors about any of those tests...
And this is quite annoying and really hard to actually figure out what is going on. Picture below to show this.

See that my bootstrap.php has die(); on line 24, and then if I run ./vendor/bin/fastest -x phpunit.xml.dist it doesn't fail at all. And actually any of those tests are really run.
Ok, so those seems to be two different problems:
- Run
fastestwith native-boption should stop if any errors happens in before command - Run
fastestwithphpunit.xmlshould stop if any errors happens if bootstrap fails or stops.
In both case, this issue seems to be the same of #102; isn't it?
@DonCallisto yeah the outcome is the same
@tarlepp see https://github.com/liuggio/fastest/pull/104. Please, leave any comment in that PR.
Moreover it solves only fastest -b "native" approach
@tarlepp ping
@DonCallisto it's good
Partially resolved in https://github.com/liuggio/fastest/pull/104; still misses bootstrap.php fail handling