Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.

behat:execute

Ryan Gurnick edited this page Jul 14, 2016 · 3 revisions

#behat:execute

Example Command Syntax

php artian behat:execute <test number> <variable set number>

What it does

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.

Process Hiercharchy

  • Runs the behat:compile command 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:analyze command

Clone this wiki locally