Steps below can also be used in build.xml file.


Styling command tags


# Creates html report file in root and do not show anything in command line
bin/behat --profile=backend --format html --out behat.html

# Creates html report file in root and prints dot signs as output in command line
bin/behat --profile=backend -f progress,html --out ,behat.html

# Creates html report file in root and prints all the steps as output in command line
bin/behat --profile=backend -f pretty,html --out ,behat.html

# Prints only dot signs as output in command line
bin/behat --profile=backend -f progress

# Prints all the steps as output in command line
bin/behat --profile=backend -f pretty

HTML report


You can use BehatHtmlFormatterPlugin bundle for HTML reports.