This repository was archived by the owner on Nov 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
behat:execute
Ryan Gurnick edited this page Jul 14, 2016
·
3 revisions
#behat:execute
php artian behat:execute <test number> <variable set number>
This command in the laravel suite will take a compiled feature file and execute it using behat and send the results back into the behat gui system for analysis and use by users.
- Runs the
behat:compilecommand to get the compiled feature file. - Gets arguments attached to local variables.
- Executes behat with the desired compiled feature file.
exec(base_path().'/bin/behat --format html '.$name.".feature", $output);
- Reads the html outputted by behat
- Gets only the results div using a DOM library.
- Attempts to determine if the test succeeded or failed.
- Removes the html file generated by behat
- Removes the compiled feature file
- Runs the
behat:analyzecommand