Commit da943d35 authored by Aaron Wells's avatar Aaron Wells

mahara_behat.sh: runheadless, and add rundebugheadless

Change-Id: I47c947282587a6ced6d67fb29c20740eb30020b5
parent 9cb6ef53
......@@ -60,7 +60,7 @@ then
PERFORM=$2
php htdocs/testing/frameworks/behat/cli/util.php --$PERFORM
elif [ "$ACTION" = "run" -o "$ACTION" = "runheadless" -o "$ACTION" = "rundebug" -o "$ACTION" = "runfresh" ]
elif [ "$ACTION" = "run" -o "$ACTION" = "runheadless" -o "$ACTION" = "rundebug" -o "$ACTION" = "runfresh" -o $ACTION = 'rundebugheadless' ]
then
if [ $ACTION = 'runheadless' -o "$ACTION" = "runfresh" ]
......@@ -93,7 +93,7 @@ then
echo "Downloaded"
fi
if [[ $ACTION == 'runheadless' ]]
if [ $ACTION = 'runheadless' -o $ACTION = 'rundebugheadless' ]
then
# we want to run selenium headless on a different display - this allows for that ;)
echo "Starting Xvfb ..."
......@@ -132,7 +132,7 @@ then
echo "=================================================="
echo
if [[ $ACTION == 'rundebug' ]]
if [ $ACTION = 'rundebug' -o $ACTION = 'rundebugheadless' ]
then
OPTIONS=$OPTIONS" --format=pretty"
fi
......@@ -158,6 +158,12 @@ else
echo "mahara_behat rundebug"
echo "mahara_behat rundebug @tagname"
echo ""
echo "# Run in headless mode (requires xvfb):"
echo "mahara_behat runheadless"
echo ""
echo "# Run in headless mode with extra debug output:"
echo "mahara_behat rundebugheadless"
echo ""
echo "# Enable test site:"
echo "mahara_behat action enable"
echo ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment