Skip to content

Instantly share code, notes, and snippets.

@pgampe
Last active April 20, 2016 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgampe/97691305723b241b727bff4f8e546466 to your computer and use it in GitHub Desktop.
Save pgampe/97691305723b241b727bff4f8e546466 to your computer and use it in GitHub Desktop.
TYPO3 Acceptance tests

Make sure to know your path the the PHP 7 cli executable. Mine is /usr/local/bin/php You will need to adopt the prepare scripts accordingly!

Call in this order:

  • test-prepare.sh
  • test-phantomjs.sh
  • test-firefox.sh
  • test-stop.sh

More information at https://wiki.typo3.org/Acceptance_testing

#!/usr/bin/bash
typo3DatabaseName='t3_core_test' typo3DatabaseHost='localhost' typo3DatabaseUsername='tester' typo3DatabasePassword='tester' /usr/local/php7/bin/php ./bin/codecept run Acceptance -c typo3/sysext/core/Build/AcceptanceTests.yml --env firefox $@
#!/usr/bin/bash
typo3DatabaseName='t3_core_test' typo3DatabaseHost='localhost' typo3DatabaseUsername='tester' typo3DatabasePassword='tester' /usr/local/php7/bin/php ./bin/codecept run Acceptance -c typo3/sysext/core/Build/AcceptanceTests.yml $@
#!/usr/bin/bash
echo 'setting up selenium'
./bin/selenium-server-standalone -Dphantomjs.binary.path=$PWD/bin/phantomjs >/dev/null 2>&1 &
echo 'setting up php'
# Make sure to change the path to the PHP 7 binary
/usr/local/php7/bin/php -S 0.0.0.0:8000 >/dev/null 2>&1 &
echo -ne 'OK ... wait three seconds\r'
sleep 1;
echo -ne 'OK ... wait three seconds.\r'
sleep 1;
echo -ne 'OK ... wait three seconds..\r'
sleep 1;
echo -ne 'OK ... wait three seconds...\n'
#!/usr/bin/bash
echo 'killing php'
killall php
echo 'killing phantomjs'
killall phantomjs
echo 'killing selenium'
pkill -f selenium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment